1 // Copyright (C) 2014-2019 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #include "FeaturesPlugin_Boolean.h"
22 #include <ModelAPI_Data.h>
23 #include <ModelAPI_Document.h>
24 #include <ModelAPI_AttributeReference.h>
25 #include <ModelAPI_AttributeInteger.h>
26 #include <ModelAPI_ResultBody.h>
27 #include <ModelAPI_AttributeSelectionList.h>
28 #include <ModelAPI_Session.h>
29 #include <ModelAPI_Validator.h>
30 #include <ModelAPI_Tools.h>
32 #include <GeomAlgoAPI_Boolean.h>
33 #include <GeomAlgoAPI_CompoundBuilder.h>
34 #include <GeomAlgoAPI_MakeShapeCustom.h>
35 #include <GeomAlgoAPI_MakeShapeList.h>
36 #include <GeomAlgoAPI_Partition.h>
37 #include <GeomAlgoAPI_PaveFiller.h>
38 #include <GeomAlgoAPI_ShapeBuilder.h>
39 #include <GeomAlgoAPI_ShapeTools.h>
40 #include <GeomAlgoAPI_Tools.h>
41 #include <GeomAPI_Face.h>
42 #include <GeomAPI_ShapeExplorer.h>
43 #include <GeomAPI_ShapeIterator.h>
48 //=================================================================================================
49 FeaturesPlugin_Boolean::FeaturesPlugin_Boolean(const OperationType theOperationType)
50 : myOperationType(theOperationType)
54 //=================================================================================================
55 void FeaturesPlugin_Boolean::initAttributes()
57 AttributeSelectionListPtr aSelection =
58 std::dynamic_pointer_cast<ModelAPI_AttributeSelectionList>(data()->addAttribute(
59 FeaturesPlugin_Boolean::OBJECT_LIST_ID(), ModelAPI_AttributeSelectionList::typeId()));
61 aSelection = std::dynamic_pointer_cast<ModelAPI_AttributeSelectionList>(data()->addAttribute(
62 FeaturesPlugin_Boolean::TOOL_LIST_ID(), ModelAPI_AttributeSelectionList::typeId()));
64 ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), OBJECT_LIST_ID());
65 ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), TOOL_LIST_ID());
68 //=================================================================================================
69 FeaturesPlugin_Boolean::OperationType FeaturesPlugin_Boolean::operationType()
71 return myOperationType;
74 //=================================================================================================
75 void FeaturesPlugin_Boolean::parentForShape(const GeomShapePtr& theShape,
76 const ResultPtr& theContext,
77 ObjectHierarchy& theShapesHierarchy)
79 ResultBodyPtr aResCompSolidPtr = ModelAPI_Tools::bodyOwner(theContext);
80 if (aResCompSolidPtr.get()) {
81 std::shared_ptr<GeomAPI_Shape> aContextShape = aResCompSolidPtr->shape();
82 if (aContextShape->shapeType() <= GeomAPI_Shape::COMPSOLID) {
83 theShapesHierarchy.AddParent(theShape, aContextShape);
84 parentForShape(aContextShape, aResCompSolidPtr, theShapesHierarchy);
89 bool FeaturesPlugin_Boolean::processAttribute(const std::string& theAttributeName,
90 ObjectHierarchy& theObjects,
91 ListOfShape& thePlanesList)
93 AttributeSelectionListPtr anObjectsSelList = selectionList(theAttributeName);
94 for (int anObjectsIndex = 0; anObjectsIndex < anObjectsSelList->size(); anObjectsIndex++) {
95 AttributeSelectionPtr anObjectAttr = anObjectsSelList->value(anObjectsIndex);
96 GeomShapePtr anObject = anObjectAttr->value();
97 if (!anObject.get()) {
98 // It could be a construction plane.
99 ResultPtr aContext = anObjectAttr->context();
100 anObject = anObjectAttr->context()->shape();
101 if (anObject.get()) {
102 thePlanesList.push_back(anObject);
108 theObjects.AddObject(anObject);
110 ResultPtr aContext = anObjectAttr->context();
111 parentForShape(anObject, aContext, theObjects);
116 //=================================================================================================
117 void FeaturesPlugin_Boolean::loadNamingDS(std::shared_ptr<ModelAPI_ResultBody> theResultBody,
118 const std::shared_ptr<GeomAPI_Shape> theBaseShape,
119 const ListOfShape& theTools,
120 const std::shared_ptr<GeomAPI_Shape> theResultShape,
121 const GeomMakeShapePtr& theMakeShape)
124 if(theBaseShape->isEqual(theResultShape)) {
125 theResultBody->store(theResultShape, false);
129 theResultBody->storeModified(theBaseShape, theResultShape);
131 theResultBody->loadModifiedShapes(theMakeShape, theBaseShape, GeomAPI_Shape::EDGE);
132 theResultBody->loadModifiedShapes(theMakeShape, theBaseShape, GeomAPI_Shape::FACE);
134 theResultBody->loadDeletedShapes(theMakeShape, theBaseShape, GeomAPI_Shape::FACE);
136 for (ListOfShape::const_iterator anIter = theTools.begin();
137 anIter != theTools.end();
140 GeomAPI_Shape::ShapeType aShapeType =
141 (*anIter)->shapeType() <= GeomAPI_Shape::FACE ? GeomAPI_Shape::FACE
142 : GeomAPI_Shape::EDGE;
143 theResultBody->loadModifiedShapes(theMakeShape, *anIter, aShapeType);
145 theResultBody->loadDeletedShapes(theMakeShape, *anIter, GeomAPI_Shape::FACE);
149 //=================================================================================================
150 bool FeaturesPlugin_Boolean::processObject(
151 const GeomAlgoAPI_Tools::BOPType theBooleanType,
152 const GeomShapePtr& theObject,
153 const ListOfShape& theTools,
154 const ListOfShape& thePlanes,
156 std::vector<FeaturesPlugin_Tools::ResultBaseAlgo>& theResultBaseAlgoList,
157 ListOfShape& theResultShapesList)
159 ListOfShape aListWithObject;
160 aListWithObject.push_back(theObject);
161 std::shared_ptr<GeomAlgoAPI_MakeShapeList> aMakeShapeList(new GeomAlgoAPI_MakeShapeList());
162 std::shared_ptr<GeomAlgoAPI_MakeShape> aBoolAlgo;
163 GeomShapePtr aResShape;
165 std::list<std::shared_ptr<GeomAPI_Pnt> > aBoundingPoints =
166 GeomAlgoAPI_ShapeTools::getBoundingBox(aListWithObject, 1.0);
169 ListOfShape aToolsWithPlanes = theTools;
170 for (ListOfShape::const_iterator anIt = thePlanes.begin(); anIt != thePlanes.end(); ++anIt) {
171 GeomShapePtr aPlane = *anIt;
172 GeomShapePtr aTool = GeomAlgoAPI_ShapeTools::fitPlaneToBox(aPlane, aBoundingPoints);
173 std::shared_ptr<GeomAlgoAPI_MakeShapeCustom> aMkShCustom(
174 new GeomAlgoAPI_MakeShapeCustom);
175 aMkShCustom->addModified(aPlane, aTool);
176 aMakeShapeList->appendAlgo(aMkShCustom);
177 aToolsWithPlanes.push_back(aTool);
180 if (theBooleanType == GeomAlgoAPI_Tools::BOOL_PARTITION)
181 aBoolAlgo.reset(new GeomAlgoAPI_Partition(aListWithObject, aToolsWithPlanes));
183 aBoolAlgo.reset(new GeomAlgoAPI_Boolean(aListWithObject,
187 // Checking that the algorithm worked properly.
189 if (GeomAlgoAPI_Tools::AlgoError::isAlgorithmFailed(aBoolAlgo, getKind(), anError)) {
194 aResShape = aBoolAlgo->shape();
195 if (aResShape.get() && aResShape->shapeType() == GeomAPI_Shape::COMPOUND) {
196 int aSubResultsNb = 0;
197 GeomAPI_ShapeIterator anIt(aResShape);
198 for (; anIt.more(); anIt.next())
201 if (aSubResultsNb == 1) {
202 anIt.init(aResShape);
204 aResShape = anIt.current();
208 aMakeShapeList->appendAlgo(aBoolAlgo);
210 GeomAPI_ShapeIterator aShapeIt(aResShape);
211 if (aShapeIt.more() || aResShape->shapeType() == GeomAPI_Shape::VERTEX) {
212 std::shared_ptr<ModelAPI_ResultBody> aResultBody =
213 document()->createBody(data(), theResultIndex);
215 // tools should be added to the list to fulfill the correct history of modification
216 aListWithObject.insert(aListWithObject.end(), theTools.begin(), theTools.end());
218 ListOfShape aUsedTools = theTools;
219 aUsedTools.insert(aUsedTools.end(), thePlanes.begin(), thePlanes.end());
221 FeaturesPlugin_Tools::loadModifiedShapes(aResultBody,
226 setResult(aResultBody, theResultIndex);
229 FeaturesPlugin_Tools::ResultBaseAlgo aRBA;
230 aRBA.resultBody = aResultBody;
231 aRBA.baseShape = theObject;
232 aRBA.makeShape = aMakeShapeList;
233 theResultBaseAlgoList.push_back(aRBA);
234 theResultShapesList.push_back(aResShape);
239 //=================================================================================================
240 bool FeaturesPlugin_Boolean::processCompsolid(
241 const GeomAlgoAPI_Tools::BOPType theBooleanType,
242 const ObjectHierarchy& theCompsolidHierarchy,
243 const GeomShapePtr& theCompsolid,
244 const ListOfShape& theTools,
245 const ListOfShape& thePlanes,
247 std::vector<FeaturesPlugin_Tools::ResultBaseAlgo>& theResultBaseAlgoList,
248 ListOfShape& theResultShapesList)
250 ListOfShape aUsedInOperationSolids;
251 ListOfShape aNotUsedSolids;
252 theCompsolidHierarchy.SplitCompound(theCompsolid, aUsedInOperationSolids, aNotUsedSolids);
254 std::shared_ptr<GeomAlgoAPI_MakeShapeList> aMakeShapeList(new GeomAlgoAPI_MakeShapeList());
256 std::list<std::shared_ptr<GeomAPI_Pnt> > aBoundingPoints =
257 GeomAlgoAPI_ShapeTools::getBoundingBox(aUsedInOperationSolids, 1.0);
260 ListOfShape aToolsWithPlanes = theTools;
261 for (ListOfShape::const_iterator anIt = thePlanes.begin(); anIt != thePlanes.end(); ++anIt)
263 GeomShapePtr aPlane = *anIt;
264 GeomShapePtr aTool = GeomAlgoAPI_ShapeTools::fitPlaneToBox(aPlane, aBoundingPoints);
265 std::shared_ptr<GeomAlgoAPI_MakeShapeCustom> aMkShCustom(
266 new GeomAlgoAPI_MakeShapeCustom);
267 aMkShCustom->addModified(aPlane, aTool);
268 aMakeShapeList->appendAlgo(aMkShCustom);
269 aToolsWithPlanes.push_back(aTool);
272 std::shared_ptr<GeomAlgoAPI_MakeShape> aBoolAlgo;
273 if (theBooleanType == GeomAlgoAPI_Tools::BOOL_PARTITION)
274 aBoolAlgo.reset(new GeomAlgoAPI_Partition(aUsedInOperationSolids, aToolsWithPlanes));
276 aBoolAlgo.reset(new GeomAlgoAPI_Boolean(aUsedInOperationSolids,
280 // Checking that the algorithm worked properly.
282 if (GeomAlgoAPI_Tools::AlgoError::isAlgorithmFailed(aBoolAlgo, getKind(), anError)) {
287 aMakeShapeList->appendAlgo(aBoolAlgo);
288 GeomShapePtr aResultShape = aBoolAlgo->shape();
290 // Add result to not used solids from compsolid.
291 if (!aNotUsedSolids.empty()) {
292 ListOfShape aShapesToAdd = aNotUsedSolids;
293 aShapesToAdd.push_back(aBoolAlgo->shape());
294 std::shared_ptr<GeomAlgoAPI_PaveFiller> aFillerAlgo(
295 new GeomAlgoAPI_PaveFiller(aShapesToAdd, true));
296 if (!aFillerAlgo->isDone()) {
297 std::string aFeatureError = "Error: PaveFiller algorithm failed.";
298 setError(aFeatureError);
302 aMakeShapeList->appendAlgo(aFillerAlgo);
303 aResultShape = aFillerAlgo->shape();
306 GeomAPI_ShapeIterator aShapeIt(aResultShape);
307 if (aShapeIt.more() || aResultShape->shapeType() == GeomAPI_Shape::VERTEX)
309 std::shared_ptr<ModelAPI_ResultBody> aResultBody =
310 document()->createBody(data(), theResultIndex);
312 ListOfShape aCompSolidList;
313 aCompSolidList.push_back(theCompsolid);
314 // tools should be added to the list to fulfill the correct history of modification
315 aCompSolidList.insert(aCompSolidList.end(), theTools.begin(), theTools.end());
317 ListOfShape aUsedTools = theTools;
318 aUsedTools.insert(aUsedTools.end(), thePlanes.begin(), thePlanes.end());
320 FeaturesPlugin_Tools::loadModifiedShapes(aResultBody,
325 setResult(aResultBody, theResultIndex);
328 FeaturesPlugin_Tools::ResultBaseAlgo aRBA;
329 aRBA.resultBody = aResultBody;
330 aRBA.baseShape = theCompsolid;
331 aRBA.makeShape = aMakeShapeList;
332 theResultBaseAlgoList.push_back(aRBA);
333 theResultShapesList.push_back(aResultShape);
338 //=================================================================================================
339 bool FeaturesPlugin_Boolean::processCompound(
340 const GeomAlgoAPI_Tools::BOPType theBooleanType,
341 const ObjectHierarchy& theCompoundHierarchy,
342 const GeomShapePtr& theCompound,
343 const ListOfShape& theTools,
345 std::vector<FeaturesPlugin_Tools::ResultBaseAlgo>& theResultBaseAlgoList,
346 ListOfShape& theResultShapesList)
348 ListOfShape aUsedInOperationShapes;
349 ListOfShape aNotUsedShapes;
350 theCompoundHierarchy.SplitCompound(theCompound, aUsedInOperationShapes, aNotUsedShapes);
352 std::shared_ptr<GeomAlgoAPI_MakeShapeList> aMakeShapeList(new GeomAlgoAPI_MakeShapeList());
353 std::shared_ptr<GeomAlgoAPI_Boolean> aBoolAlgo(
354 new GeomAlgoAPI_Boolean(aUsedInOperationShapes,
358 // Checking that the algorithm worked properly.
360 if (GeomAlgoAPI_Tools::AlgoError::isAlgorithmFailed(aBoolAlgo, getKind(), anError)) {
365 aMakeShapeList->appendAlgo(aBoolAlgo);
366 GeomShapePtr aResultShape = aBoolAlgo->shape();
368 // Add result to not used shape from compound.
369 if (!aNotUsedShapes.empty()) {
370 ListOfShape aShapesForResult = aNotUsedShapes;
371 if (aResultShape->shapeType() == GeomAPI_Shape::COMPOUND) {
372 for (GeomAPI_ShapeIterator aResultIt(aResultShape); aResultIt.more(); aResultIt.next()) {
373 aShapesForResult.push_back(aResultIt.current());
377 aShapesForResult.push_back(aResultShape);
380 if (aShapesForResult.size() == 1) {
381 aResultShape = aShapesForResult.front();
384 aResultShape = GeomAlgoAPI_CompoundBuilder::compound(aShapesForResult);
388 GeomAPI_ShapeIterator aShapeIt(aResultShape);
389 if (aShapeIt.more() || aResultShape->shapeType() == GeomAPI_Shape::VERTEX) {
390 std::shared_ptr<ModelAPI_ResultBody> aResultBody =
391 document()->createBody(data(), theResultIndex);
393 ListOfShape aCompoundList;
394 aCompoundList.push_back(theCompound);
395 FeaturesPlugin_Tools::loadModifiedShapes(aResultBody,
400 setResult(aResultBody, theResultIndex);
403 FeaturesPlugin_Tools::ResultBaseAlgo aRBA;
404 aRBA.resultBody = aResultBody;
405 aRBA.baseShape = theCompound;
406 aRBA.makeShape = aMakeShapeList;
407 theResultBaseAlgoList.push_back(aRBA);
408 theResultShapesList.push_back(aResultShape);
413 //=================================================================================================
415 void FeaturesPlugin_Boolean::ObjectHierarchy::AddObject(const GeomShapePtr& theObject)
417 myObjects.push_back(theObject);
420 void FeaturesPlugin_Boolean::ObjectHierarchy::AddParent(const GeomShapePtr& theShape,
421 const GeomShapePtr& theParent)
423 myParent[theShape] = theParent;
425 MapShapeToIndex::iterator aFound = myParentIndices.find(theParent);
426 size_t anIndex = myParentIndices.size();
427 if (aFound == myParentIndices.end()) {
428 myParentIndices[theParent] = anIndex;
429 mySubshapes.push_back(ShapeAndSubshapes(theParent, ListOfShape()));
431 anIndex = aFound->second;
433 mySubshapes[anIndex].second.push_back(theShape);
436 GeomShapePtr FeaturesPlugin_Boolean::ObjectHierarchy::Parent(const GeomShapePtr& theShape,
437 bool theMarkProcessed)
439 MapShapeToParent::const_iterator aFound = myParent.find(theShape);
440 GeomShapePtr aParent;
441 if (aFound != myParent.end()) {
442 aParent = aFound->second;
443 if (theMarkProcessed) {
444 // mark the parent and all its subs as processed by Boolean algorithm
445 myProcessedObjects.insert(aParent);
446 const ListOfShape& aSubs = mySubshapes[myParentIndices[aParent]].second;
447 for (ListOfShape::const_iterator anIt = aSubs.begin(); anIt != aSubs.end(); ++anIt)
448 myProcessedObjects.insert(*anIt);
454 void FeaturesPlugin_Boolean::ObjectHierarchy::ObjectsByType(
455 ListOfShape& theShapesByType,
456 ListOfShape& theOtherShapes,
457 const GeomAPI_Shape::ShapeType theMinType,
458 const GeomAPI_Shape::ShapeType theMaxType) const
460 if (theMinType > theMaxType)
461 return ObjectsByType(theShapesByType, theOtherShapes, theMaxType, theMinType);
463 // no need to select objects if whole range is specified
464 if (theMinType == GeomAPI_Shape::COMPOUND && theMaxType == GeomAPI_Shape::SHAPE) {
465 theShapesByType.insert(theShapesByType.end(), myObjects.begin(), myObjects.end());
469 for (ListOfShape::const_iterator anIt = myObjects.begin(); anIt != myObjects.end(); ++anIt) {
470 GeomAPI_Shape::ShapeType aType = (*anIt)->shapeType();
471 if (aType >= theMinType && aType <= theMaxType)
472 theShapesByType.push_back(*anIt);
474 theOtherShapes.push_back(*anIt);
479 void FeaturesPlugin_Boolean::ObjectHierarchy::SplitCompound(const GeomShapePtr& theCompShape,
480 ListOfShape& theUsed,
481 ListOfShape& theNotUsed) const
486 MapShapeToIndex::const_iterator aFoundIndex = myParentIndices.find(theCompShape);
487 if (aFoundIndex == myParentIndices.end())
488 return; // no such shape
490 const ListOfShape& aSubs = mySubshapes[aFoundIndex->second].second;
492 aSubsSet.insert(aSubs.begin(), aSubs.end());
494 for (GeomAPI_ShapeIterator anExp(theCompShape); anExp.more(); anExp.next()) {
495 GeomShapePtr aCurrent = anExp.current();
496 if (aSubsSet.find(aCurrent) == aSubsSet.end())
497 theNotUsed.push_back(aCurrent);
499 theUsed.push_back(aCurrent);
503 bool FeaturesPlugin_Boolean::ObjectHierarchy::IsEmpty() const
505 return myObjects.empty();
508 void FeaturesPlugin_Boolean::ObjectHierarchy::CompoundsOfUnusedObjects(
509 ListOfShape& theDestination) const
511 SetOfShape aUsedObjects;
512 aUsedObjects.insert(myObjects.begin(), myObjects.end());
514 for (std::vector<ShapeAndSubshapes>::const_iterator anIt = mySubshapes.begin();
515 anIt != mySubshapes.end(); ++anIt) {
516 MapShapeToParent::const_iterator aParent = myParent.find(anIt->first);
517 if ((aParent == myParent.end() || !aParent->second) &&
518 anIt->first->shapeType() == GeomAPI_Shape::COMPOUND) {
519 // this is a top-level compound
520 GeomShapePtr aCompound = collectUnusedSubs(anIt->first, aUsedObjects);
521 // add to destination non-empty compounds only
523 theDestination.push_back(aCompound);
528 GeomShapePtr FeaturesPlugin_Boolean::ObjectHierarchy::collectUnusedSubs(
529 GeomShapePtr theTopLevelCompound,
530 const SetOfShape& theUsed) const
532 GeomShapePtr aResult = theTopLevelCompound->emptyCopied();
533 bool isResultEmpty = true;
535 for (GeomAPI_ShapeIterator aSub(theTopLevelCompound); aSub.more(); aSub.next()) {
536 GeomShapePtr aCurrent = aSub.current();
537 if (theUsed.find(aCurrent) != theUsed.end())
538 continue; // already used
540 MapShapeToIndex::const_iterator aFoundIndex = myParentIndices.find(aCurrent);
541 if (aCurrent->shapeType() > GeomAPI_Shape::COMPOUND ||
542 aFoundIndex == myParentIndices.end()) {
543 bool isAddShape = true;
544 // check compsolid is fully unused in the Boolean operation
545 if (aCurrent->shapeType() == GeomAPI_Shape::COMPSOLID) {
546 for (GeomAPI_ShapeIterator anIt(aCurrent); isAddShape && anIt.more(); anIt.next())
547 isAddShape = theUsed.find(anIt.current()) == theUsed.end();
550 if (isAddShape) { // low-level shape, add it
551 GeomAlgoAPI_ShapeBuilder::add(aResult, aCurrent);
552 isResultEmpty = false;
555 GeomShapePtr aCompound = collectUnusedSubs(aCurrent, theUsed);
557 GeomAlgoAPI_ShapeBuilder::add(theTopLevelCompound, aCompound);
558 isResultEmpty = false;
562 return isResultEmpty ? GeomShapePtr() : aResult;
566 FeaturesPlugin_Boolean::ObjectHierarchy::Iterator FeaturesPlugin_Boolean::ObjectHierarchy::Begin()
568 return Iterator(this);
571 FeaturesPlugin_Boolean::ObjectHierarchy::Iterator FeaturesPlugin_Boolean::ObjectHierarchy::End()
573 return Iterator(this, false);
576 FeaturesPlugin_Boolean::ObjectHierarchy::Iterator::Iterator(
577 FeaturesPlugin_Boolean::ObjectHierarchy* theHierarchy, bool isBegin)
578 : myHierarchy(theHierarchy)
581 myObject = myHierarchy->myObjects.begin();
582 SkipAlreadyProcessed();
584 myObject = myHierarchy->myObjects.end();
587 void FeaturesPlugin_Boolean::ObjectHierarchy::Iterator::SkipAlreadyProcessed()
589 while (myObject != myHierarchy->myObjects.end() &&
590 myHierarchy->myProcessedObjects.find(*myObject) != myHierarchy->myProcessedObjects.end())
594 bool FeaturesPlugin_Boolean::ObjectHierarchy::Iterator::operator==(const Iterator& theOther) const
596 return myObject == theOther.myObject;
599 bool FeaturesPlugin_Boolean::ObjectHierarchy::Iterator::operator!=(const Iterator& theOther) const
601 return !operator==(theOther);
604 FeaturesPlugin_Boolean::ObjectHierarchy::Iterator&
605 FeaturesPlugin_Boolean::ObjectHierarchy::Iterator::operator++()
608 SkipAlreadyProcessed();
612 FeaturesPlugin_Boolean::ObjectHierarchy::Iterator
613 FeaturesPlugin_Boolean::ObjectHierarchy::Iterator::operator++(int)
616 aCurrent.myHierarchy = myHierarchy;
617 aCurrent.myObject = myObject;
625 GeomShapePtr FeaturesPlugin_Boolean::ObjectHierarchy::Iterator::operator*() const
627 myHierarchy->myProcessedObjects.insert(*myObject);