ListOfShape aFreeFaces;
std::shared_ptr<GeomAPI_Shape> aFacesCompound = GeomAlgoAPI_CompoundBuilder::compound(aFacesList);
GeomAlgoAPI_ShapeTools::combineShapes(aFacesCompound, GeomAPI_Shape::SHELL, aShells, aFreeFaces);
- for(ListOfShape::const_iterator anIter = aFreeFaces.cbegin(); anIter != aFreeFaces.cend(); anIter++) {
- aShells.push_back(*anIter);
- }
+ aShells.insert(aShells.end(), aFreeFaces.begin(), aFreeFaces.end());
// Pass shells/faces to solids creation function.
ListOfShape aBooleanTools;