0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / tests / bugs / mesh / bug25045
1 puts "========"
2 puts "OCC25045"
3 puts "========"
4 puts ""
5 ###########################################
6 # STEP Import fails to find all surfaces
7 ###########################################
8
9 pload XDE
10
11 set refnbfaces 13
12
13 stepread [locate_data_file bug25045_ick_0433.stp] a *
14 renamevar a_1 result
15
16 #1
17 vinit
18 vsetdispmode 1
19 vbottom
20 vdisplay result
21 vfit
22 checkview -screenshot -3d -path ${imagedir}/${test_image}.png
23
24 #2
25 set log1 [explode result f]
26 set nbfaces [llength $log1]
27
28 #3
29 set log2 [tricheck result]
30
31 if { $nbfaces != $refnbfaces } {
32   puts "Error: Shape restored incorrectly - number of faces is different than expected value ($nbfaces != $refnbfaces)"
33 }
34
35 if { [llength $log2] != 0 } {
36   puts "Error: Some faces has failed to mesh"
37 }