+ bool aIsEdge = hasEdge(myConstraint);
+ if (!aIsEdge) {
+ std::shared_ptr<GeomAPI_Pnt2d> aPnt = getCoincidencePoint(myConstraint);
+ std::shared_ptr<GeomAPI_Pnt2d> aP;
+ FeaturePtr aSub;
+ int aNumberOfSubs = mySketch->numberOfSubs();
+ for (int i = 0; i < aNumberOfSubs; i++) {
+ aSub = mySketch->subFeature(i);
+ if (aSub->getKind() == SketchPlugin_ConstraintCoincidence::ID() &&
+ aSub.get() != myConstraint) {
+ aP = getCoincidencePoint(aSub.get());
+ if (aP && aP->isEqual(aPnt)) {
+ aIsEdge = hasEdge(aSub.get());
+ if (aIsEdge)
+ break;
+ }
+ }
+ }
+ }
+ Quantity_Color aMainColor;
+ Color(aMainColor);
+ Quantity_Color aExternalColor = aIsEdge ? aMainColor : Quantity_NOC_YELLOW;
+ Quantity_Color aInternalColor = aIsEdge ? Quantity_NOC_YELLOW : aMainColor;
+
+ int aRatio = SketcherPrs_Tools::pixelRatio();
+