Skip to content

Issues with AIS_InteractiveContext SetSelectionMode() #729

@e3dEF

Description

@e3dEF

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions