Salome HOME
Issue #2811: Update content of Object node on creation moment
[modules/shaper.git] / src / GeomValidators / GeomValidators_NotSelfIntersected.cpp
index dc83cd1966bd8bc5c898e1e10d944fe88391b2a8..aa017935d63ced7532dd32c0521f85cc9e0dde35 100644 (file)
@@ -25,7 +25,7 @@
 #include <Events_InfoMessage.h>
 
 #include <ModelAPI_AttributeSelection.h>
-#include <ModelAPI_AttributeSelectionList.h>>
+#include <ModelAPI_AttributeSelectionList.h>
 #include <ModelAPI_Feature.h>
 
 bool GeomValidators_NotSelfIntersected::isValid(const std::shared_ptr<ModelAPI_Feature>& theFeature,
@@ -74,10 +74,10 @@ bool GeomValidators_NotSelfIntersected::isValid(const std::shared_ptr<ModelAPI_F
           return false;
         }
 
-        if (aShape->isSelfIntersected(4)) {
+        /* optimization if (aShape->isSelfIntersected(4)) {
           theError = "Error: One of selected shapes are self-intersected.";
           return false;
-        }
+        }*/
       }
     } else {
       theError = std::string("Error: validator does not support attribute with type: ")