Juliette Flamand Thu, 10/26/2017 - 05:31 Forums: Visualization and 3D ViewerHow 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 Thu, 10/26/2017 - 10:12 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. Log in to post comments Juliette Flamand Thu, 10/26/2017 - 19:43 Thank you! It is working for me. Log in to post comments Dulana Hansisi Mon, 07/23/2018 - 12:27 Thank You! could you please tell me how to change the default selection thickness. Log in to post comments
Thu, 10/26/2017 - 10:12
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.
Thu, 10/26/2017 - 19:43
Thank you! It is working for me.
Mon, 07/23/2018 - 12:27
Thank You! could you please tell me how to change the default selection thickness.