For all issues regarding the Forums use, please, refer to the Forum Rules.

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

Problems to select TopoDS_Face with different color

seumonkey's picture

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 ?