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

Search the Forums
See All Topics

How to select the child label (child TopoDS_Shape )?

How to select the child label (child TopoDS_Shape )?
seumonkey 2012/11/20 12:50
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?
Latest news
  • Open CASCADE CAD Assistant for iOS platform is available!
  • Open CASCADE Technology 6.9.0 is available for download!
  • JT Assistant for Android

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