AISObjectPtr anAIS = thePrevious;
if (!anAIS) {
anAIS = SketcherPrs_Factory::coincidentConstraint(this, sketch()->coordinatePlane());
- std::vector<int> aRGB = Config_PropManager::color("Visualization", "sketch_constraint_color",
- SKETCH_DIMENSION_COLOR);
- anAIS->setColor(aRGB[0], aRGB[1], aRGB[2]);
+ //std::vector<int> aRGB = Config_PropManager::color("Visualization", "sketch_constraint_color",
+ // SKETCH_DIMENSION_COLOR);
+ //anAIS->setColor(aRGB[0], aRGB[1], aRGB[2]);
}
return anAIS;
}
static Handle(Graphic3d_AspectMarker3d) aPtA;
if (aPtA.IsNull()) {
aPtA = new Graphic3d_AspectMarker3d ();
- aPtA->SetType(Aspect_TOM_RING1);
- aPtA->SetScale(2.);
- aPtA->SetColor(myOwnColor);
}
+ aPtA->SetType(Aspect_TOM_RING3);
+ aPtA->SetScale(2.);
+ aPtA->SetColor(Quantity_NOC_YELLOW);
+
Handle(Graphic3d_Group) aGroup = Prs3d_Root::CurrentGroup(thePresentation);
aGroup->SetPrimitivesAspect(aPtA);
Handle(Graphic3d_ArrayOfPoints) aPntArray = new Graphic3d_ArrayOfPoints(1);
aPntArray->AddVertex (aPoint->x(), aPoint->y(), aPoint->z());
aGroup->AddPrimitiveArray (aPntArray);
+
+ aPtA->SetType(Aspect_TOM_RING1);
+ aPtA->SetScale(1.);
+ aPtA->SetColor(Quantity_NOC_BLACK);
+ aGroup->SetPrimitivesAspect(aPtA);
+ aGroup->AddPrimitiveArray (aPntArray);
+
+ aPtA->SetType(Aspect_TOM_POINT);
+ aPtA->SetScale(5.);
+ aGroup->SetPrimitivesAspect(aPtA);
+ aGroup->AddPrimitiveArray (aPntArray);
}