Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#1707 Fatal error when Recover box
[modules/shaper.git]
/
src
/
FeaturesPlugin
/
FeaturesPlugin_CompositeSketch.cpp
diff --git
a/src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.cpp
b/src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.cpp
index bf8cc53e22c69ae66aa86a9713a3a107d2574d23..fd16671cfcfe941a3881485a93739b894e30e0a3 100644
(file)
--- a/
src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.cpp
+++ b/
src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.cpp
@@
-206,7
+206,7
@@
void FeaturesPlugin_CompositeSketch::getBaseShapes(ListOfShape& theBaseShapesLis
}
// Searching faces with common edges.
}
// Searching faces with common edges.
- if(theIsMakeShells) {
+ if(theIsMakeShells
&& aBaseFacesList.size() > 1
) {
ListOfShape aShells;
ListOfShape aFreeFaces;
GeomShapePtr aFacesCompound = GeomAlgoAPI_CompoundBuilder::compound(aBaseFacesList);
ListOfShape aShells;
ListOfShape aFreeFaces;
GeomShapePtr aFacesCompound = GeomAlgoAPI_CompoundBuilder::compound(aBaseFacesList);
@@
-274,7
+274,6
@@
void FeaturesPlugin_CompositeSketch::storeGenerationHistory(ResultBodyPtr theRes
switch(aBaseShapeType) {
case GeomAPI_Shape::VERTEX: {
aShapeTypeToExplode = GeomAPI_Shape::VERTEX;
switch(aBaseShapeType) {
case GeomAPI_Shape::VERTEX: {
aShapeTypeToExplode = GeomAPI_Shape::VERTEX;
- aGenName += "Edge";
break;
}
case GeomAPI_Shape::EDGE:
break;
}
case GeomAPI_Shape::EDGE:
@@
-294,7
+293,6
@@
void FeaturesPlugin_CompositeSketch::storeGenerationHistory(ResultBodyPtr theRes
case GeomAPI_Shape::FACE:
case GeomAPI_Shape::SHELL: {
aShapeTypeToExplode = GeomAPI_Shape::EDGE;
case GeomAPI_Shape::FACE:
case GeomAPI_Shape::SHELL: {
aShapeTypeToExplode = GeomAPI_Shape::EDGE;
- aGenName += "Face";
break;
}
case GeomAPI_Shape::COMPOUND: {
break;
}
case GeomAPI_Shape::COMPOUND: {
@@
-395,4
+393,4
@@
void storeSubShape(ResultBodyPtr theResultBody,
aStr << theName << "_" << theShapeIndex++;
theResultBody->generated(aSubShape, aStr.str(), theTag++);
}
aStr << theName << "_" << theShapeIndex++;
theResultBody->generated(aSubShape, aStr.str(), theTag++);
}
-}
\ No newline at end of file
+}