circle or arc


I have a Geom2d_Curve, which is one a time a circle, the other time an arc. Geom2dAdaptor_Curve::GetType always returns GeomAbs_Circle. How can I distinguisch between these two entities?


Francois Lauzon's picture

Hello Stefan,
a Geom2d_Circle will always be a full circle [0,2*PI]. If you want an arc, you have to trim that circle, either by using a Geom2d_TrimmedCurve or by building a TopoDS_Edge with a start and an end parameter (for example [0,PI/2]). So if you do the reverse, to know if you have a circle or an arc, you have to get the start and end parameter and from there find if it's full circle or an arc.

Good luck,

waldi's picture

Hi Francois,

thanks a lot, I will try it.

Greetings to the most beautiful town in the world.

Je me souviens!!