Fixed the Toroidal surface recognition;
The test case bugs/moddata_1/bug22296: the result is a torus with parameters: u [0, 2*PI], v [PI, 3*PI];
The test case bugs/modalg_5/bug23954: BAD -> OK.
MajorRadius = aLin.Distance(aLC);
if(MajorRadius > aR)
{
- Standard_Real aT = 0., aDx, dX;
- gp_Pnt aPx;
-
- aPx = ElCLib::Value(aT, C);
- aDx = aLin.Distance(aPx);
- dX = aDx - MajorRadius - aR;
- if (dX < 0.)
- dX = -dX;
- if (dX < TolConf)
- return GeomAbs_Torus;
+ return GeomAbs_Torus;
}
}
break;
-puts "TODO OCC23954 ALL: Error: result is not Toroidal surface"
-
puts "============"
puts "OCC23954"
puts "============"
set good_umin 0
set good_umax 6.28319
- set good_vmin 0
- set good_vmax 6.28319
+ set good_vmin 3.14159
+ set good_vmax 9.42478
set xlist [xbounds f]
set umin [lindex $xlist 0]