I am developing a program which has been extended from the Open CASCADE 3dViewer sample, I am currently trying to get the labels that are attached to the shapes from an imported STEP file but having some trouble as the 3dViewer is not an OCAF document as far as I know and I can't easily change the structure as it is being used by other functions of the program.
I know I have to use XDE and have started with the following code:
Handle(XCAFDoc_ShapeTool) myAssembly = XCAFDoc_DocumentTool::ShapeTool(doc->Main());
TDF_Label aLabel = myAssembly->NewShape();
I have already set up the import of a STEP file and converted it to a BREP to display in the 3dViewer, basically what I now want to do is output a list of the shapes that are in the STEP file.
Has anyone done this before, have any ideas that could point me in the right direction?