DiscussionsIssue archiveOther usage issues

Archived discussion

About OCAF attribute TDataXtd_Point, TDataXtd_Point, TDataXtd_Plane

Other usage issuesThu, 08/27/2015 - 14:281 reply

Browse this forum
QuestionAuthor

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,

Author

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

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,
Commenter-1