algorithmic modeling for Rhino
Hi Phillip,
how could I calculate the centroid without calculating the area?
--
David Rutten
david@mcneel.com
Poprad, Slovakia
hmm. ok, maybe a silly question. i thought of converting the surface to a finite set of of points, to achieve an aproximation, since I am using the point only for testing a brep inclusion.
can you think of a more sufficent method?
files attached. thanks for your attention
Calculating areas and centroids is easy for triangles. I could make a low-quality representation of the surface as a mesh. But then the Rhino SDK also has functions for computing AreaCentroids for Meshes and closed planar curves.
I can make the AreaCentroid and VolumeCentroid components capable of dealing with Brep, Surface, Mesh and Curve data. We can then test to see if it's any faster.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by