Set Selection Color in OCCT 7.2.0

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.


Benjamin Bihler's picture

I do it like this:

    const Handle(Prs3d_Drawer) selectionStyle = new Prs3d_Drawer();

This works here.

Juliette Flamand's picture

Thank you!  It is working for me.

Dulana Hansisi's picture

Thank You! could you please tell me how to change the default selection thickness.