if(!aShapeAttrSelection.get() || !aSubShapesAttrList.get()) {
return;
}
- ResultPtr aContext = aShapeAttrSelection->context();
aSubShapesAttrList->clear();
+ ResultPtr aContext = aShapeAttrSelection->context();
+
GeomShapePtr aBaseShape = aShapeAttrSelection->value();
if(!aBaseShape.get()) {
return;
// Copy sub-shapes from list to new shape.
if(!aShapesToAdd.empty()) {
- aBuilder.add(aResultShape, aShapesToAdd);
+ aBuilder.addInternal(aResultShape, aShapesToAdd);
aResultShape = aBuilder.shape();
}
aResultBody->storeModified(aBaseShape, aResultShape);
aResultBody->loadAndOrientModifiedShapes(&aBuilder, aBaseShape, GeomAPI_Shape::EDGE, aModEdgeTag,
"Modified_Edge", *aBuilder.mapOfSubShapes().get());
- for(ListOfShape::const_iterator anIt = aShapesToAdd.cbegin(); anIt != aShapesToAdd.cend(); ++anIt) {
+ for(ListOfShape::const_iterator
+ anIt = aShapesToAdd.cbegin(); anIt != aShapesToAdd.cend(); ++anIt) {
GeomAPI_Shape::ShapeType aShType = (*anIt)->shapeType();
aResultBody->loadAndOrientModifiedShapes(&aBuilder, *anIt, aShType,
- aShType == GeomAPI_Shape::VERTEX ? aModVertexTag : aModEdgeTag,
- aShType == GeomAPI_Shape::VERTEX ? "Modified_Vertex" : "Modified_Edge",
- *aBuilder.mapOfSubShapes().get());
+ aShType == GeomAPI_Shape::VERTEX ? aModVertexTag : aModEdgeTag,
+ aShType == GeomAPI_Shape::VERTEX ? "Modified_Vertex" : "Modified_Edge",
+ *aBuilder.mapOfSubShapes().get());
}
setResult(aResultBody);
}