Home
GH Sample Files
GH Python Tutorials
Rhino Assets
Books
Blog
Plugins
About
Privacy Policy
Terms of Service
Contact
© 2025 STUDIO TAMA

- `count_x`: int – X方向のグリッド数(列数)
- `count_y`: int – Y方向のグリッド数(行数)
- `spacing`: float – 球体間の距離
- `amplitude`: float – Sin波の振幅(Z方向への最大オフセット)
- `radian`: float – グリッド全体での波の角度(例:`2π`で1波、`4π`で2波)
- `sphere_radius`: float – 各球体の半径- `results`: list of `Sphere` – Sin波によってZ方向に変形された球体群import Rhino.Geometry as rg
import math
spheres = []
for i in range(count_x):
for j in range(count_y):
x = i * spacing
y = j * spacing
t = float(j) / (count_y - 1)
angle = t * radian
z_offset = math.sin(angle) * amplitude
center = rg.Point3d(x, y, z_offset)
spheres.append(rg.Sphere(center, sphere_radius))
results = spheresLicense & Terms of Use
| Item | Allowed | Description |
|---|---|---|
| Integration into your projects | ○ | You are free to use the code as part of your scripts or works, whether for personal or commercial purposes. |
| Code modification & learning use | ○ | Customizing the code for your own learning or specific purposes is very welcome. |
| Sharing on SNS / showcasing | ○ | No permission is required to share images or URLs of your works. Please feel free to showcase them! |
| Redistribution / republishing | × | Do not publish the code or files in their entirety as content on your own site or elsewhere. |
| Reselling as materials/programs | × | Do not sell the content of this site, either as-is or with only minor modifications, for a fee. |
| Copyright notice / link | Optional | Not required, but including a link to the source would be greatly appreciated. |