Salome HOME
Fix the projection of periodic B-spline curve to non-orthogonal plane.
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Validators.cpp
index 0ccd6ae4ff5bd36148b038447de7beaca06eba6f..18c9f81c248112f3850cf229782089f9d1ba88ae 100644 (file)
@@ -1284,7 +1284,7 @@ bool SketchPlugin_ProjectionValidator::isValid(const AttributePtr& theAttribute,
       if (aBSplinePlane) {
         std::shared_ptr<GeomAPI_Dir> aBSplineNormal = aBSplinePlane->direction();
         double aDot = fabs(aNormal->dot(aBSplineNormal));
-        aValid = fabs(aDot - 1.0) <= tolerance * tolerance;
+        aValid = aDot > tolerance * tolerance;
         if (!aValid) {
           // B-spline's plane is orthogonal to the sketch plane,
           // thus, need to check whether B-spline is planar.