0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / tests / demo / draw / binpersist_1
1 # test binsave and binrestore commands
2
3 pload TOPTEST
4
5 set file $imagedir/${casename}.bin
6
7 box b 10 20 30 100 200 300
8
9 if [regexp "Cannot write to the file $file" [binsave b $file]] {
10   puts "Error: binsave"
11 } elseif [regexp "Cannot read from the file $file" [binrestore $file bb]] {
12   puts "Error: binrestore"
13 } else {
14   file delete $file
15   if {[bounding b -dump] != [bounding bb -dump]} {
16     puts "Error: restored shape has another bounding box"
17   }
18   checkshape bb
19   checknbshapes bb -ref [nbshapes b]
20   checkprops bb -l 4800
21   checkprops bb -s 220000
22   checkprops bb -v 6000000
23 }
24
25 puts "TEST COMPLETED"