For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Set Selection Color in OCCT 7.2.0

Juliette Flamand's picture
Forums: 

How do you set the selection color for objects in the interactive context in OCCT 7.2.0?

I tried myAISContext-->SelectionStyle()-->SetColor(Quantity_NOC_ORANGE), but it didn't work.

Thanks!!

Benjamin Bihler's picture

I do it like this:

    const Handle(Prs3d_Drawer) selectionStyle = new Prs3d_Drawer();
    selectionStyle->SetColor(static_cast<Quantity_NameOfColor>(...));
    interactiveContext->SetSelectionStyle(selectionStyle);

This works here.

Juliette Flamand's picture

Thank you!  It is working for me.