i would like to find centroid plane surface

Dear sir.

I would like to find cetroid point of plane surface.

Please tell me how do i!


Please.. thanks..

s-lee's picture


I solve the problem..


Miguel Costa's picture


Could you please tell me how you solved it? Is there an Open Cascade function that already exists to compute the centroid of a face?

I know how to compute the centroid of a polygone, but not when some edges are circles, ellipses, and so on.

Answer from anyone would be appreciated. Thanks


Zoltan Gaal's picture

I'm not sure, but i think you may try using the triangulation. The polygonOnTriangulation gives you the aproximated linear polygon of any surface.

Bearloga's picture

You could try calling BRepGProp::SurfaceProperties and then get center of mass. This is a general approach for any type of geometry.

Miguel Costa's picture

Thanks a lot.
The two approachs work well. Thank you guys, it's very nice of you.