0029868: Draw Harness - help message for readstl command is unclear
[occt.git] / tests / bugs / xde / bug22670_2
1 puts "================"
2 puts "OCC22670"
3 puts "================"
4 puts ""
5 #######################################################################################
6 # Regression in the method RWStl::WriteAscii
7 #######################################################################################
8 #
9 puts "================"
10 puts "OCC22866"
11 puts "================"
12 puts ""
13 #######################################################################################
14 # Now it is not possible to mesh a shape in parallel mode during the export in STL
15 #######################################################################################
16 #
17
18 set BugNumber OCC22670
19
20 set filepath [locate_data_file OMF6391_box.stl]
21 if { [catch { readstl res_mesh $filepath -brep } catch_result] } {
22     puts "Faulty ${BugNumber}: here is reading problem"
23 } else {
24     set aFile $imagedir/${test_image}.stl
25     catch {exec rm -f ${aFile}}
26      
27     incmesh res_mesh 0.1   
28
29     set anASCIImode 0
30     writestl res_mesh ${aFile} ${anASCIImode}
31     catch {exec chmod 777 ${aFile}}
32
33     readstl result ${aFile} -brep
34
35     checknbshapes result -vertex 8 -edge 18 -wire 12 -face 12 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 51
36 }
37 checkprops result -s 600 
38 checkshape result
39 checkview -display result -3d -path ${imagedir}/${test_image}.png