I am trying to construct a half circle going from (0,0,0) to the point (10,0,0) with radius 5 and the shape of the half circle should be concave , I have written the following code:
gp_Pnt pt1(0, 0, 0);
gp_Pnt pt2(10, 0, 0);
gp_Pnt centerPt(5, 0, 0);
gp_Dir dir(0, -1, 0);
gp_Ax2 ax2(centerPt, dir);
gp_Circ circ(ax2, 5);
auto makeArc = GC_MakeArcOfCircle(circ, pt1, pt2, true);
Geom_TrimmedCurve* curve = new Geom_TrimmedCurve(makeArc.Value(), 0, pt1.Distance(pt2), true);
This generates a half circle but the arc is convex, I have tried changing to gp_Dir dir(0, 1, 0) and also tried changing the order of my points. The "sense" parameter I have also tried setting to false, without any success.
Does anyone have any tips to how I can fix the orientation of my arc?