Grasshopper

algorithmic modeling for Rhino

Hi everyone,

does anyone know a way how to find the centroid of a srf without calculations of areas or volume? (without calculation time for unnecessary information)

@David: could this be an extra item on the analysis panel?

 

Thanks,

Phillip

Views: 897

Replies to This Discussion

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

 

Attachments:

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

sounds good. meanwhile i´ll try some walk around methods.

thanks

so are you wanting to make sure that the point is inside the boundary?

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service