I have a trimed circle face, and How can I find it Center point and its Vector?
Thanks
S.A. (not verified) Sun, 05/15/2005 - 01:37
I suppose, your circle is a TopoDS_Shape. If it is, first you need to get the surrounding edge of the face. If you have this TopoDS_Edge, than you can extract its geometric curve with the BRep_Tool::Curve(). Then call DownCast to convert it into a Geom_Circle. Than call method Center() of Geom_Circle and you'll get it. I'm not 100% sure if this works in your case...
I really wish I can help you with this, but the trimed circle face I have was given to my, and it think it was created by a 3rd party software. so , I do not have any idea about how to creat a tirmed face with OCC too. one I find out how, I would be glad to share it with you.
Sun, 05/15/2005 - 01:37
I suppose, your circle is a TopoDS_Shape. If it is, first you need to get the surrounding edge of the face. If you have this TopoDS_Edge, than you can extract its geometric curve with the BRep_Tool::Curve(). Then call DownCast to convert it into a Geom_Circle. Than call method Center() of Geom_Circle and you'll get it. I'm not 100% sure if this works in your case...
Best Regards
S.A. Bulgaria
Fri, 05/20/2005 - 19:37
Hi David,
Can't center of gravity help?
See "Global properties" section in the Modeling Data Reference Manual for details and API.
Hope this helps.
Roman
Mon, 05/30/2005 - 16:04
Hi guys,
thanks for the information. in this case, S.A.'s method was what I looked for. and it is really great. Thanks.
Tue, 05/31/2005 - 14:58
Hello David,
What API used for creating a trimed circle face.
can u share ur code ?
thanks and regards
- gp
Wed, 06/01/2005 - 03:30
Hi GP,
I really wish I can help you with this, but the trimed circle face I have was given to my, and it think it was created by a 3rd party software. so , I do not have any idea about how to creat a tirmed face with OCC too. one I find out how, I would be glad to share it with you.