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

Search the Forums
See All Topics
 

Problems to select TopoDS_Face with different color

Problems to select TopoDS_Face with different color
seumonkey 2012/12/14 20:57
I have an object made of some different part, and I want to show these part with different color, so I made faces, and do like below:

Handle_AIS_Shape myAISShape = new AIS_Shape(topoShape);
if(i!=2)myAISShape->SetColor(ColorDoubleYellowLine);          //set diff faces with diff color
else myAISShape->SetColor(ColorLane);
_AISContext->Display(myAISShape,Standard_False);               //display them

But the problem is : I can not select this object but these parts. How I can solve this problem ? many faces with different color and select them as a whole ?
 
 
Latest news
  • OCCT Applications
  • Open CASCADE Technology 6.8.0 is available for download!
  • New features to enhance the development process

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