} else {
std::string anError;
ListOfShape aListOfShape;
- std::shared_ptr<GeomAlgoAPI_MakeShapeList>
- aListOfTranslationAlgo(new GeomAlgoAPI_MakeShapeList);
+ ListOfMakeShape aMakeShapeList;
for (int i=0; i<nbCopies; i++) {
std::shared_ptr<GeomAlgoAPI_Translation> aTranslationAlgo(
break;
}
aListOfShape.push_back(aTranslationAlgo->shape());
- aListOfTranslationAlgo->appendAlgo(aTranslationAlgo);
+ aMakeShapeList.push_back(aTranslationAlgo);
}
+
+ std::shared_ptr<GeomAlgoAPI_MakeShapeList>
+ aListOfTranslationAlgo(new GeomAlgoAPI_MakeShapeList(aMakeShapeList));
+
std::shared_ptr<GeomAPI_Shape> aCompound =
GeomAlgoAPI_CompoundBuilder::compound(aListOfShape);
ResultBodyPtr aResultBody = document()->createBody(data(), aResultIndex);
} else {
std::string anError;
ListOfShape aListOfShape;
- std::shared_ptr<GeomAlgoAPI_MakeShapeList>
- aListOfTranslationAlgo(new GeomAlgoAPI_MakeShapeList);
+ ListOfMakeShape aMakeShapeList;
for (int j=0; j<aSecondNbCopies; j++) {
for (int i=0; i<aFirstNbCopies; i++) {
break;
}
aListOfShape.push_back(aTranslationAlgo->shape());
- aListOfTranslationAlgo->appendAlgo(aTranslationAlgo);
+ aMakeShapeList.push_back(aTranslationAlgo);
}
}
+
+ std::shared_ptr<GeomAlgoAPI_MakeShapeList>
+ aListOfTranslationAlgo(new GeomAlgoAPI_MakeShapeList(aMakeShapeList));
+
std::shared_ptr<GeomAPI_Shape> aCompound =
GeomAlgoAPI_CompoundBuilder::compound(aListOfShape);
ResultBodyPtr aResultBody = document()->createBody(data(), aResultIndex);