The 'Sense' parameter of 'GC_MakeArcOfCircle' does not seem to be operational?

frankpian

Looking around for some CAD
I endeavored to set 'Sense' as both true and false, yet the outcomes appeared to be identical in both instances.
_20231103171834.jpg

C++:
gp_Pnt p1 (0, 0, 0);
gp_Pnt p2(2, 2, 0);
gp_Pnt center(2, 0, 0);
gp_Circ circ(gp_Ax2(center, gp_Dir(0, 0, 1)), 2);
gp_Circ circ2(gp_Ax2(center, gp_Dir(0, 0, 1)), 3);

Handle(Geom_TrimmedCurve) anArcOfCircle = GC_MakeArcOfCircle (circ, p1, p2, true);
Handle(Geom_TrimmedCurve) anArcOfCircle2 = GC_MakeArcOfCircle(circ2, p1, p2, false);
 

Quaoar

Administrator
Staff member
That's all fine, the meaning of this parameter is just different: it is the geometric orientation of the parameterization:

1699199057819.png

You should rather change the order of p1 and p2 arguments to make the smaller arc:

1699199205846.png
 
Top