IMPLEMENT_STANDARD_RTTIEXT(SketcherPrs_Coincident, AIS_InteractiveObject);
SketcherPrs_Coincident::SketcherPrs_Coincident(ModelAPI_Feature* theConstraint,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane)
-: AIS_InteractiveObject(), myConstraint(theConstraint), mySketcherPlane(thePlane),
+ SketchPlugin_Sketch* theSketch)
+: AIS_InteractiveObject(), myConstraint(theConstraint), mySketch(theSketch),
myPoint(gp_Pnt(0.0, 0.0, 0.0)), myIsCustomColor(false)
{
}
const Standard_Integer theMode)
{
gp_Pnt aPoint;
- bool aReadyToDisplay = readyToDisplay(myConstraint, mySketcherPlane, aPoint);
+ bool aReadyToDisplay = readyToDisplay(myConstraint, mySketch->coordinatePlane(), aPoint);
if (aReadyToDisplay)
myPoint = aPoint;