GeomAPI_DataMapOfShapeShape alreadyProcessed;
// 1. Explode on Vertices
- for (GeomAPI_ShapeExplorer anExp (theShape, GeomAPI_Shape::VERTEX); anExp.more(); anExp.next()) {
+ for (GeomAPI_ShapeExplorer anExp (theShape, GeomAPI_Shape::VERTEX);
+ anExp.more(); anExp.next()) {
GeomShapePtr aSubShape = anExp.current();
if (alreadyProcessed.bind(aSubShape, aSubShape)) {
// Partition
ListOfShape anObjList, aTools;
anObjList.push_back(theShape);
- std::shared_ptr<GeomAlgoAPI_Partition> aPartitionAlgo (new GeomAlgoAPI_Partition(anObjList, aTools));
+ std::shared_ptr<GeomAlgoAPI_Partition> aPartitionAlgo (
+ new GeomAlgoAPI_Partition(anObjList, aTools));
std::string anError;
if (GeomAlgoAPI_Tools::AlgoError::isAlgorithmFailed(aPartitionAlgo, getKind(), anError)) {
GeomShapePtr aSplittedSketch = aPartitionAlgo->shape();
// Explode on Vertices, skip vertices of initial sketch
- for (GeomAPI_ShapeExplorer anExp (aSplittedSketch, GeomAPI_Shape::VERTEX); anExp.more(); anExp.next()) {
+ for (GeomAPI_ShapeExplorer anExp (aSplittedSketch, GeomAPI_Shape::VERTEX);
+ anExp.more(); anExp.next()) {
GeomShapePtr aSubShape = anExp.current();
//if (!theShape->isSubShape(aSubShape)) { // skip vertices of initial sketch
// Partition
ListOfShape anObjList, aTools;
anObjList.push_back(theShape);
- std::shared_ptr<GeomAlgoAPI_Partition> aPartitionAlgo (new GeomAlgoAPI_Partition(anObjList, aTools));
+ std::shared_ptr<GeomAlgoAPI_Partition> aPartitionAlgo (
+ new GeomAlgoAPI_Partition(anObjList, aTools));
std::string anError;
if (GeomAlgoAPI_Tools::AlgoError::isAlgorithmFailed(aPartitionAlgo, getKind(), anError)) {
GeomShapePtr aSplittedSketch = aPartitionAlgo->shape();
// Explode on Vertices, skip vertices of initial sketch
- for (GeomAPI_ShapeExplorer anExp (aSplittedSketch, GeomAPI_Shape::VERTEX); anExp.more(); anExp.next()) {
+ for (GeomAPI_ShapeExplorer anExp (aSplittedSketch, GeomAPI_Shape::VERTEX);
+ anExp.more(); anExp.next()) {
GeomShapePtr aSubShape = anExp.current();
//if (!theShape->isSubShape(aSubShape)) { // skip vertices of initial sketch
// Sub-result i
GeomShapePtr aSubResShape = aRes->shape();
- for (GeomAPI_ShapeExplorer anExp (aSubResShape, GeomAPI_Shape::VERTEX); anExp.more(); anExp.next()) {
+ for (GeomAPI_ShapeExplorer anExp (aSubResShape, GeomAPI_Shape::VERTEX);
+ anExp.more(); anExp.next()) {
GeomShapePtr aSubShape = anExp.current();
if (alreadyProcessed.bind(aSubShape, aSubShape)) {