-
-
Notifications
You must be signed in to change notification settings - Fork 398
Open
Labels
Description
Hello,
I'm using the OCCViewer.Viewer3d to display shapes and get feedback from the user by clicking them.
For example, I can successfully change the color of a shape after it was selected in the viewer.
clr = Quantity_Color.Name(1.0, 0, 0)
display.Context.SetColor(ais, clr)
Now I wanted to allow to select e.g. only edges of a shape. So I tried
display.Context.SetSelectionMode(ais, TopAbs_EDGE)
But it has no effect. I don't want to use,
display.SetSelectionModeShape()
which works, but is applied on all shapes and additionally closes the context, so that I lose all links the shapes. How can I change only selection mode of a single shape?