0026855: Draw commands to debug Boolean Operations Algorithm
[occt.git] / tests / bugs / xde / bug25357
CommitLineData
b9c1e440 1puts "=========="
2puts "OCC25357"
3puts "=========="
4puts ""
5#######################################################################################
6# STL writer does not check the given shape for existing triangulation and remeshes
7# shape using BRepMesh in force mode
8#######################################################################################
9
10set aFile ${imagedir}/${test_image}.stl
11file delete -force ${aFile}
12
13set anASCIImode 0
14
15ptorus res 10 8
16incmesh res 0.5
17
b9c1e440 18set LogBefore [trinfo res]
b9c1e440 19
20writestl res ${aFile} ${anASCIImode}
21
b9c1e440 22set LogAfter [trinfo res]
b9c1e440 23
24set status 1
25if { ![file exists ${aFile}] } {
26 set status 0
27}
28
29# Check file size
30set filesize [ file size ${aFile} ]
31if { ${filesize} == 0 } {
32 set status 0
33}
34
35if { $LogBefore != $LogAfter } {
36 set status 0
37}
38
39if {$status == 1} {
40 puts "OK: STL writer check given shape"
41} else {
42 puts "Error: STL writer does not check given shape"
43}