I need selection of parts of geometric primitives (e. g. if I have a box, I need to be able to select the faces or edges individually). AFAIK I need an AIS_Shape for this purpose. My BoxDriver (similar to the drivers in SampleOCAF) creates a TopoDS_Shape and I don't know how to retrieve it.
The display is done through:
Handle(TPrsStd_AISPresentation) prs = TPrsStd_AISPresentation::Set(
I do not seem to be able to select any one part of the box, although I set the selection mode of the viewer correctly.
Does anyone know how to achieve the things I need?
Thanks in advance.