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

About OCAF attribute TDataXtd_Point, TDataXtd_Point, TDataXtd_Plane

Denis Teissandier's picture
Forums: 

Hi,
a main rule concerning OCAF is that is not possible to add two identical attributes (same classes) to a given label.

Let us consider the TDataXtd_Point attribute. By adding this attribute in the label LAB, automatically a TNaming_NamedShape (BRep_TVertex) is added.

Let us consider the TDataXtd_Axis attribute. By adding this attribute in the label LAB, automatically a TNaming_NamedShape (BRep_TEdge) is added.

But the last TNaming_NamedShape (BRep_TEdge) has erased the TNaming_NamedShape (BRep_TVertex).
It is not possible to read the point stored in the TDataXtd_Point attribute.

No exception is launched in a such situation.

Is it normal ?
Is someone has faced this situation ?
Regards,

Denis Teissandier

Benjamin Bihler's picture

Hi,

I have not yet worked with TDataXtd_Points, but normally in OCAF you would create a label for every new entity. Attributes are there only to descibe details of this entity. Therefore if you have an edge and a vertex, their attributes should probably be stored at differnt labels.

Ciao,
Benjamin