f6df1c9ef079da229b3a07438bba3cd70856edfb
[occt.git] / tests / bugs / stlvrml / bug27622
1 puts "========"
2 puts "OCC27622"
3 puts "========"
4 puts ""
5 ########################################################################
6 # Data Exchange - STL file having less than 4 triangles cannot be read
7 ########################################################################
8
9 readstl result [locate_data_file bug27622_Design1.stl]
10
11 set nbshapes_expected "
12 Number of shapes in result
13  VERTEX    : 4
14  EDGE      : 5
15  WIRE      : 2
16  FACE      : 2
17  SHELL     : 1
18  SOLID     : 0
19  COMPSOLID : 0
20  COMPOUND  : 0
21  SHAPE     : 14
22 "
23 checknbshapes result -ref ${nbshapes_expected} -t -m "Result of STL-reading operation"
24
25 checkview -display result -2d -path ${imagedir}/${test_image}.png