error *= C.Radius();
if (error <= Tol) {
SError = error;
- error += Radius + Abs(RotRadius - C.Radius())/2;
- if (error <= Tol || Radius <= Tol) {
+ error += Radius;
+ if (Radius <= Tol) {
// (2.1.a) Sphere
Standard_Real f = UFirst , l = ULast, aRadius = 0.0;
SError = error;
Centre.BaryCenter(1.0, C.Location(), 1.0);
gp_Ax3 AxisOfSphere(Centre, DN, DS);
- if (Radius <= Tol)
- {
- aRadius = C.Radius();
- }
- else
- {
- aRadius = (RotRadius + C.Radius()) / 2;
- }
+ aRadius = C.Radius();
gp_Sphere theSphere( AxisOfSphere, aRadius );
S = new Geom_SphericalSurface(theSphere);
// Pour les spheres on ne peut pas controler le parametre