I want to make a arc.

I want to make a arc when I know two end point on the arc and radius of arc.

How to do about it?

Maili's picture

I don't know if there is better solution but I would create a circle, a curve from this circle and then project two end points on this curve and find two parameters (GeomAPI_ProjectPointOnCurve::LowerDistanceParameter) and then create a trimmed curve using circle and parameters (Geom_TrimmedCurve)
Hope it helps..

Marco Matt's picture

Hi,

take a look at "GC_MakeArcOfCircle", this class should have the function you need.

mekibos's picture

I'll try it. thank you!