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 select the child label (child TopoDS_Shape )?

seumonkey's picture

I want to display the shape topo_intersection as below:
TopoDS_Shape topo_intersection=MakeIntersection(inst); // this create the shape.
TNaming_Builder B(L_Intersection);
prs1= TPrsStd_AISPresentation::Set(L_Intersection,TNaming_NamedShape::GetID());
Now, I can select the L_Intersection shape and change the color by this:
TopoDS_Shape S=myAISContext->SelectedShape();
But, I only can select the top shape L_Intersection , I cannot select the child of the Label L_Intersection, what can I do ? Giving every child a label and using this "TNaming_Builder B(L_child_x);" to display every child so that I can select every child?