algorithmic modeling for Rhino
if your geometry is a closed brep (or even a mesh) your best bet is to use a bounding box on it to generate your voronoi and then execute a boolean operation. You can limit your voronoi calculation to just those points in your geometry to speed it up a bit.
The 2D and 3D voronoi algorithms are based on the premise that every cell can only ever be convex*. Technically it could work on any convex boundary, but I never wrote a convex-tester for 3D boundary shapes.
Like the other David said, your only option is to use the boundingbox to create the diagram and then use boolean operations to cut the result to your actual boundary.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
* in fact voronoi cells may only have linear edges and 3D voronoi cells may only have planar faces in addition to all them having to be convex.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by