Problems to select TopoDS_Face with different color
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
_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 ?