0024696: Lower performance of the new Edge/Edge intersection algorithm
[occt.git] / tests / caf / tree / C2
CommitLineData
40093367 1#INTERFACE CAF
2# Tree construction attributes
3#
4# Testing attribute: TDataStd_TreeNode
5#
6# Testing command: SetNode
7#
8# Testing command: RootNode
9#
10
11puts "caf005-C2"
12
13# Add an attribute to a data framework
14set aLabel_Root 0:2
15set aName_Root Label_1
16Label D ${aLabel_Root}
17SetName D ${aLabel_Root} ${aName_Root}
18SetNode D ${aLabel_Root}
19
20# Close/Open the transaction
21NewCommand D
22
23# Save the document
8418c617 24set aFile ${imagedir}/caf005-C2.std
40093367 25file delete ${aFile}
26SaveAs D ${aFile}
27if { ![file exists ${aFile}] } {
28 puts "There is not ${aFile} file; SaveAs command: Error"
29 return
30}
31#catch {exec chmod 777 ${aFile}}
32
33# Restore the document
34Close D
35Open ${aFile} DD
36
37# Get a value of the attribute
38set aGetLabel_Root ""
39set IsDone [catch {set aGetLabel_Root [RootNode DD ${aLabel_Root}]} aResult]
40if { ${IsDone} != 0 ||
41 ${aLabel_Root}!=${aGetLabel_Root} } {
42 puts "aLabel_Root=${aLabel_Root} aGetLabel_Root=${aGetLabel_Root}"
43 puts ${aResult}
44 puts "Get a value of TDataStd_TreeNode attribute from restoring document: Error"
45 return
46}
47puts "Get a value of TDataStd_TreeNode attribute from restoring document: OK"