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

How to change SelectionColor of Vertex?

Hans's picture


i've searched for an answer a few days, but i can't find a solution. I create all vertices with the BrepBuilderAPI_MakeVertex. To show the vertex i build a new AIS_Shape
After that i set the vertex color with Prs3d_PointAspect. Because AIS_Shape->SetColor/AIS_InteractiveContext->Color(...) doesn't work.

But if i select a vertex by clicking on it with the mouse (ActiveStandardMode is TopAbs_VERTEX) the vertex is colored in the SelectionColor of my AIS_InteractiveContext.

I'm not able to change the color of a selected vertex by setting it's PointAspect again. Is there another attribute or method to set the SelectionColor for a vertex?

Or do i have to write my own class for showing selected vertices with different color than the default selectioncolor defined for the Context? Can anyone give my an example?

Thanks for your help and best regards,