if (!aShapePrs.IsNull()) {
const TopoDS_Shape& aShape = aShapePrs->Shape();
- if (aShape.IsNull())
- Events_Error::throwException("An empty AIS presentation");
+ if (aShape.IsNull()) {
+ //Events_Error::throwException("An empty AIS presentation");
+ }
else
anInfo += QString(", shape type: %1").arg(getShapeTypeInfo(aShape.ShapeType()));
}
if (!BROwnr.IsNull() && BROwnr->HasShape()) {
const TopoDS_Shape& aShape = BROwnr->Shape();
- if (aShape.IsNull())
- Events_Error::throwException("An empty AIS presentation");
+ if (aShape.IsNull()) {
+ //Events_Error::throwException("An empty AIS presentation");
+ }
else
anInfo += QString(", shape type: %1").arg(getShapeTypeInfo(aShape.ShapeType()));
}
(theAttribute);
aShape = aSelectAttr->value();
}
+ else // Geom2D point processing
+ aShape = theWorkshop->module()->findShape(theAttribute);
return aShape;
}
//**************************************************************
-bool isSubOfComposite(const ObjectPtr& theObject)
+/*bool isSubOfComposite(const ObjectPtr& theObject)
{
bool isSub = false;
std::set<FeaturePtr> aRefFeatures;
isSub = isSubOfComposite(theObject, *anIt);
}
return isSub;
-}
+}*/
//**************************************************************
-bool isSubOfComposite(const ObjectPtr& theObject, const FeaturePtr& theFeature)
+/*bool isSubOfComposite(const ObjectPtr& theObject, const FeaturePtr& theFeature)
{
bool isSub = false;
CompositeFeaturePtr aComposite = std::dynamic_pointer_cast<ModelAPI_CompositeFeature>(theFeature);
}
}
return isSub;
-}
+}*/
//**************************************************************
ResultPtr firstResult(const ObjectPtr& theObject)