Show an arc

I want to show an arc based on 3 points, GC_MakeArcOfCircle seems to be a good starting point, but how do I get an AIS_InteractiveObject out of that?

Kirill Gavrilov's picture

AIS_Shape is a universal interactive object for displaying geometry. You just need creating TopoDS_Edge out of your's Geom_Curve to be able to use it.

Sathiya nathan's picture
 Handle(Geom_TrimmedCurve) anArcOfCircle = GC_MakeArcOfCircle (aPnt1,  aPnt2, aPnt3);
 Handle(AIS_Shape) aisShape =  new AIS_Shape( BRepBuilderAPI_MakeEdge(anArcOfCircle) );     
Luc Wens's picture

Great, tnx