#define SKETCH_ENTITY_COLOR "225,0,0"
#define SKETCH_EXTERNAL_COLOR "170,0,225"
#define SKETCH_AUXILIARY_COLOR "0,85,0"
-#define SKETCH_OVERCONSTRAINT_COLOR "0,0,0"
+#define SKETCH_OVERCONSTRAINT_COLOR "255,0,0"
#define SKETCH_FULLY_CONSTRAINED_COLOR "0,150,0"
//#define SET_PLANES_COLOR_IN_PREFERENCES
if (!myAspect.IsNull())
myAspect->SetColor (myCustomColor);
+
+ Handle(Prs3d_Presentation) aPrs = Presentation();
+ if (!aPrs.IsNull()) {
+ if (myIsCustomColor) {
+ Handle(Graphic3d_PresentationAttributes) aAttr = new Graphic3d_PresentationAttributes();
+ aAttr->SetColor(myCustomColor);
+ aPrs->Highlight(aAttr);
+ }
+ else {
+ aPrs->UnHighlight();
+ }
+ }
}
//*********************************************************************************
const Handle(Prs3d_Presentation)& thePrs,
Quantity_Color theColor) const
{
- int aColNam = theColor.Name();
- //cout<<"### SketcherPrs_SymbolPrs::drawShape "<<theColor.Name()<<endl;
Handle(Graphic3d_AspectLine3d) aLineAspect =
new Graphic3d_AspectLine3d(theColor, Aspect_TOL_SOLID, 2);