s-lee Wed, 02/14/2001 - 07:48 Forums: Other usage issuesDear sir. I would like to find cetroid point of plane surface. Please tell me how do i! Help... Please.. thanks.. s-lee Wed, 02/14/2001 - 09:25 Thanks.. I solve the problem.. Thanks.. Log in to post comments Miguel Costa Thu, 05/25/2006 - 01:07 Hello, 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 Miguel Log in to post comments Zoltan Gaal Thu, 05/25/2006 - 12:26 I'm not sure, but i think you may try using the triangulation. The polygonOnTriangulation gives you the aproximated linear polygon of any surface. Log in to post comments Bearloga Thu, 05/25/2006 - 13:29 You could try calling BRepGProp::SurfaceProperties and then get center of mass. This is a general approach for any type of geometry. Log in to post comments Miguel Costa Thu, 05/25/2006 - 17:21 Thanks a lot. The two approachs work well. Thank you guys, it's very nice of you. Miguel Log in to post comments
Wed, 02/14/2001 - 09:25
Thanks..
I solve the problem..
Thanks..
Thu, 05/25/2006 - 01:07
Hello,
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
Miguel
Thu, 05/25/2006 - 12:26
I'm not sure, but i think you may try using the triangulation. The polygonOnTriangulation gives you the aproximated linear polygon of any surface.
Thu, 05/25/2006 - 13:29
You could try calling BRepGProp::SurfaceProperties and then get center of mass. This is a general approach for any type of geometry.
Thu, 05/25/2006 - 17:21
Thanks a lot.
The two approachs work well. Thank you guys, it's very nice of you.
Miguel