From 648fc05f3a0780001c3fbfecbe80c29a73506b82 Mon Sep 17 00:00:00 2001 From: dbv Date: Thu, 30 Aug 2018 16:56:28 +0300 Subject: [PATCH] Small fix for Fill. --- src/FeaturesPlugin/CMakeLists.txt | 1 + src/FeaturesPlugin/boolean_fill_widget.xml | 44 +++++++++++++++++++ src/FeaturesPlugin/plugin-Features.xml | 2 +- .../GeomValidators_NotSelfIntersected.cpp | 8 ++-- 4 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 src/FeaturesPlugin/boolean_fill_widget.xml 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*/, -- 2.39.2