I've written some code to import stl-geometries and to visualize them with OCC.
Now i can (interactively) select parts of my "shape" with the mouse, i.E. faces:
//some code-fragments here:
.... //import STL
TopoDS_Shape aShape = ResultShape;
Handle(TopTools_HSequenceOfShape) shapes = new TopTools_HSequenceOfShape();
shapes->Append( aShape );
for ( int i = 1; i Length(); i++ )
myInteractiveContext->Display( new AIS_Shape( shapes->Value( i ) ), false );
Now I want to add some Attributes to the selected Faces, like material-informations, elasticity-factors,... . This could be done with edit-masks or sliders (I use qt) connected to the current selection.
I also want to add my selection to different, pre-defined groups.
Is there any guide/example how to do this?
Or has anybody done sth like this before or knows how to start?