Archived issue #0023612
BRepPrimAPI_MakeTorus
Description
BRepPrimAPI_MakeTorus when construct with angle failed, and no matter the angle value, its still a whole torus.
Public activity
4 archived notes
Participants are labeled by their role within this record.
I can reproduce the problem (not sure it is the same) when not a complete torus is built but only a sector, restricted in both directions, and when angular range by small radius passes over 180 degrees.
In DRAW:
> ptorus p 10 2 90 270 45
The shape is invalid and causes serious problems in display in both axo and AIS viewers
In DRAW:
> ptorus p 10 2 90 270 45
The shape is invalid and causes serious problems in display in both axo and AIS viewers
The same problem exists also in OCC6.3.0
My code is like follow:
BRepPrimAPI_MakeTorus aTorus(120, 35, 90);
BRepPrimAPI_MakeTorus aTorus(120, 35, 90);
I am sorry, the BRepPrimAPI_MakeTorus function is right,
the parameter angle's unit is radian not degree.
It's better raise a exception when the angle is greater than
PI * 2.
the parameter angle's unit is radian not degree.
It's better raise a exception when the angle is greater than
PI * 2.