#include <ModelAPI_Session.h>
#include <ModelAPI_ResultCompSolid.h>
+#include <Events_Error.h>
+
#include <GeomAPI_IPresentable.h>
#include <StdPrs_WFDeflectionShape.hxx>
Handle(Prs3d_Drawer) aDrawer = Attributes();
// create presentations on the base of the shapes
+ bool anEmptyAIS = true;
QMap<ObjectPtr, QList<GeomShapePtr> >::const_iterator anIt = myFeatureShapes.begin(),
aLast = myFeatureShapes.end();
for (; anIt != aLast; anIt++) {
}
}
StdPrs_WFDeflectionShape::Add(thePresentation, aShape, aDrawer);
+ if (anEmptyAIS)
+ anEmptyAIS = false;
}
}
+ if (anEmptyAIS)
+ Events_Error::throwException("An empty AIS presentation: PartSet_OperationPrs");
}
void PartSet_OperationPrs::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,