- myPntArray = new Graphic3d_ArrayOfPoints(1);
- myPntArray->AddVertex(0., 0., 0.);
-}
+}
+
+bool SketcherPrs_Rigid::IsReadyToDisplay(ModelAPI_Feature* theConstraint,
+ const std::shared_ptr<GeomAPI_Ax3>& thePlane)
+{
+ bool aReadyToDisplay = false;
+
+ std::shared_ptr<ModelAPI_Data> aData = theConstraint->data();
+ std::shared_ptr<ModelAPI_AttributeRefAttr> anAttr = aData->refattr(SketchPlugin_Constraint::ENTITY_A());
+ AttributePtr aRefAttr = anAttr->attr();
+ if (anAttr->isObject()) {
+ // The constraint attached to an object
+ ObjectPtr aObj = anAttr->object();
+ aReadyToDisplay = SketcherPrs_Tools::getShape(aObj).get() != NULL;