Standard_EXPORT ResultPtr getResult() const { return myResult; }
+ Standard_EXPORT bool isSketchMode() const { return myIsSketchMode; }
+
DEFINE_STANDARD_RTTI(ModuleBase_ResultPrs)
protected:
Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
TopAbs_ShapeEnum aType = aShape.ShapeType();
if ((aType == TopAbs_VERTEX) || (aType == TopAbs_EDGE) || (aType == TopAbs_WIRE))
return false;
- else
+ else {
+ // Check that the presentation is not a sketch
+ Handle(ModuleBase_ResultPrs) aPrs = Handle(ModuleBase_ResultPrs)::DownCast(theAIS);
+ if (!aPrs.IsNull())
+ return !aPrs->isSketchMode();
return true;
+ }
}
return false;
}