View Issue Details

IDProjectCategoryView StatusLast Update
0023612CommunityOCCT:Modeling Algorithmspublic2013-10-22 11:20
Reportereryar Assigned Toifv 
PriorityhighSeverityminor 
Status assignedResolutionopen 
PlatformWindowsOSVC++ 2010 
Product Version6.5.0 
Summary0023612: BRepPrimAPI_MakeTorus
DescriptionBRepPrimAPI_MakeTorus when construct with angle failed, and no matter the angle value, its still a whole torus.
TagsNo tags attached.
Test case number

Attached Files

  • torus.PNG (115,883 bytes)

Activities

eryar

2012-12-03 14:29

developer  

torus.PNG (115,883 bytes)

abv

2012-12-03 16:51

manager   ~0022521

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

abv

2012-12-03 16:53

manager   ~0022522

The same problem exists also in OCC6.3.0

eryar

2012-12-03 17:00

developer   ~0022523

My code is like follow:
BRepPrimAPI_MakeTorus aTorus(120, 35, 90);

eryar

2012-12-15 15:41

developer   ~0022714

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.

Issue History

Date Modified Username Field Change
2012-12-03 14:29 eryar New Issue
2012-12-03 14:29 eryar Assigned To => jgv
2012-12-03 14:29 eryar File Added: torus.PNG
2012-12-03 16:51 abv Note Added: 0022521
2012-12-03 16:53 abv Note Added: 0022522
2012-12-03 17:00 eryar Note Added: 0022523
2012-12-15 15:41 eryar Note Added: 0022714
2012-12-15 15:41 eryar Status new => resolved
2012-12-17 09:40 abv Status resolved => assigned
2013-08-05 19:24 eryar Status assigned => resolved
2013-10-22 11:20 abv Assigned To jgv => ifv
2013-10-22 11:20 abv Status resolved => assigned