b9c1e440 |
1 | puts "==========" |
2 | puts "OCC25357" |
3 | puts "==========" |
4 | puts "" |
5 | ####################################################################################### |
6 | # STL writer does not check the given shape for existing triangulation and remeshes |
7 | # shape using BRepMesh in force mode |
8 | ####################################################################################### |
9 | |
10 | set aFile ${imagedir}/${test_image}.stl |
11 | file delete -force ${aFile} |
12 | |
13 | set anASCIImode 0 |
14 | |
15 | ptorus res 10 8 |
16 | incmesh res 0.5 |
17 | |
b9c1e440 |
18 | set LogBefore [trinfo res] |
b9c1e440 |
19 | |
20 | writestl res ${aFile} ${anASCIImode} |
21 | |
5d7a0489 |
22 | checktrinfo res -ref "${LogBefore}" |
b9c1e440 |
23 | |
5d7a0489 |
24 | if { ![file exists ${aFile}] || [ file size ${aFile} ] == 0 } { |
b9c1e440 |
25 | puts "Error: STL writer does not check given shape" |
5d7a0489 |
26 | } else { |
27 | puts "OK: STL writer check given shape" |
b9c1e440 |
28 | } |