From: dbv Date: Thu, 30 Aug 2018 13:56:28 +0000 (+0300) Subject: Small fix for Fill. X-Git-Tag: V9_2_0a1~78^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=648fc05f3a0780001c3fbfecbe80c29a73506b82;p=modules%2Fshaper.git Small fix for Fill. --- diff --git a/src/FeaturesPlugin/CMakeLists.txt b/src/FeaturesPlugin/CMakeLists.txt index 11a8377a2..1bb74ed46 100644 --- a/src/FeaturesPlugin/CMakeLists.txt +++ b/src/FeaturesPlugin/CMakeLists.txt @@ -110,6 +110,7 @@ SET(XML_RESOURCES boolean_widget.xml boolean_fuse_widget.xml boolean_common_widget.xml + boolean_fill_widget.xml boolean_smash_widget.xml recover_widget.xml partition_widget.xml diff --git a/src/FeaturesPlugin/boolean_fill_widget.xml b/src/FeaturesPlugin/boolean_fill_widget.xml new file mode 100644 index 000000000..e584a531f --- /dev/null +++ b/src/FeaturesPlugin/boolean_fill_widget.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + diff --git a/src/FeaturesPlugin/plugin-Features.xml b/src/FeaturesPlugin/plugin-Features.xml index bb13f70af..3858a8811 100644 --- a/src/FeaturesPlugin/plugin-Features.xml +++ b/src/FeaturesPlugin/plugin-Features.xml @@ -94,7 +94,7 @@ email : webmaster.salome@opencascade.com - + diff --git a/src/GeomValidators/GeomValidators_NotSelfIntersected.cpp b/src/GeomValidators/GeomValidators_NotSelfIntersected.cpp index e3032b624..dc83cd196 100644 --- a/src/GeomValidators/GeomValidators_NotSelfIntersected.cpp +++ b/src/GeomValidators/GeomValidators_NotSelfIntersected.cpp @@ -74,17 +74,19 @@ bool GeomValidators_NotSelfIntersected::isValid(const std::shared_ptrisSelfIntersected()) { + if (aShape->isSelfIntersected(4)) { theError = "Error: One of selected shapes are self-intersected."; return false; } } - } - else { + } else { theError = std::string("Error: validator does not support attribute with type: ") + anAttribute->attributeType(); + return false; } } + + return true; } bool GeomValidators_NotSelfIntersected::isNotObligatory(std::string /*theFeature*/,