Improve code generation and documentation
This commit is contained in:
parent
58bc0b635a
commit
100368d198
12 changed files with 359 additions and 3617 deletions
13
examples/Jellyfish.py
Normal file
13
examples/Jellyfish.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from geometry_script import *
|
||||
|
||||
@tree("Jellyfish")
|
||||
def jellyfish(geometry: Geometry, head_radius: Float):
|
||||
curve_points = geometry.curve_to_points(mode='EVALUATED').points
|
||||
for i, points in curve_points:
|
||||
return instance_on_points()
|
||||
head = ico_sphere(radius=head_radius).transform(
|
||||
translation=head_transform.position,
|
||||
rotation=rotate_euler(space='LOCAL', rotation=align_euler_to_vector(vector=head_transform.tangent), rotate_by=(90, 0, 0)),
|
||||
scale=(1, 1, 0.5)
|
||||
)
|
||||
return join_geometry(geometry=[head, geometry])
|
||||
Reference in a new issue