aShape = anExtractor.GetResult();
+ if (aShape.IsNull()) {
+ Standard_ConstructionError::Raise("Result of extraction is empty");
+ }
+
// Get statistics.
const TopTools_ListOfShape &aRemoved = anExtractor.GetRemoved();
const TopTools_ListOfShape &aModified = anExtractor.GetModified();
void OperationGUI_ExtractionDlg::eraseAll()
{
TColStd_MapIteratorOfMapOfInteger anIter(myMapDisplayedIDs);
+ TColStd_ListOfInteger aDisplayedIDs;
for (; anIter.More(); anIter.Next()) {
- eraseSubShape(anIter.Key());
+ aDisplayedIDs.Append(anIter.Key());
+ }
+
+ TColStd_ListIteratorOfListOfInteger aListIter(aDisplayedIDs);
+
+ for (; aListIter.More(); aListIter.Next()) {
+ eraseSubShape(aListIter.Value());
}
- myMapDisplayedIDs.Clear();
getDisplayer()->UpdateViewer();
}