DiscussionsIssue archiveOCCT:Modeling Algorithms

Archived issue #0023612

BRepPrimAPI_MakeTorus

CommunityOCCT:Modeling Algorithmsassigned4 public notes

Search issues

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.

01Commenter 1
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
02Commenter 2
The same problem exists also in OCC6.3.0
03Author
My code is like follow:
BRepPrimAPI_MakeTorus aTorus(120, 35, 90);
04Author
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.