For all issues regarding the Forums use, please, refer to the Forum Rules.

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

Related pages

Association of Subshapes with labels

Björn Hagemeier's picture
Forums: 

Hi all,

I'm working with the OCAF framework and would like to store additional information on subshapes in sublabels. The setup is similar to the following:

ShapeLabel -- TNaming_NamedFace
|
Face1Label -- TNaming_NamedFace
| |-- Extra_Attribute
|
Face2Label -- TNaming_NamedFace
|-- Extra_Attribute
...

I want to be able to interactively select the subshapes (faces in particular) and associate them with the corresponding label. I'm already able to select subshapes using an open local context on the main shape.
Do I have to store an TPrsStd_AISPresentation for each sublabel? If so, how could I avoid this and only create the sublabel and attributes on demand?

Regards,

Björn

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.