Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Shape factory
Shape gallery
What's new
System requirements
Download Center
Public license
Getting started
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
Home / Developer Corner / Forums / Usage issues / How to change SelectionColor of Vertex?

How to change SelectionColor of Vertex?

How to change SelectionColor of Vertex?
Hans 2012/12/11 06:33

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,
Latest news
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map