kopia lustrzana https://github.com/carson-katri/geometry-script
9 wiersze
282 B
Python
9 wiersze
282 B
Python
|
from geometry_script import *
|
||
|
|
||
|
@tree("Repeat Grid")
|
||
|
def repeat_grid(geometry: Geometry, width: Int, height: Int):
|
||
|
g = grid(
|
||
|
size_x=width, size_y=height,
|
||
|
vertices_x=width, vertices_y=height
|
||
|
).mesh_to_points()
|
||
|
return g.instance_on_points(instance=geometry)
|