ghpythonlib.components.Voronoi

When you call ghpythonlib.components.Voronoi fumction, and try to give “boundary” input something like

import ghpythonlib.components as ghc
points = []
#..... generating points
vd = ghc.Voronoi(points,100,boundary)

you always have to specify clearly the input type hint as follows

ghcomp_voronoi

vd_test.zip

However, this works only with rectangle curve, so that more adaptive solution could be using rhinoscriptsyntax.CurveBooleanIntersection with calling ghpythonlib.components.Voronoi fumction with just 1 input(points).

voronoi_CurveBooleanIntersection

vd_test_trim.zip

 

 

Comments are closed.