9ced84ff |
1 | puts "============" |
ba00aab7 |
2 | puts "0023193: Some triangles are inverted when writing an STL file" |
9ced84ff |
3 | puts "============" |
4 | puts "" |
9ced84ff |
5 | |
ba00aab7 |
6 | pload QAcommands |
9ced84ff |
7 | |
60874ff8 |
8 | set aFile $imagedir/bug23193_sample.stl |
9ced84ff |
9 | |
ba00aab7 |
10 | vinit View1 |
9ced84ff |
11 | stepread [locate_data_file bug23193_sample.stp] a * |
b9c1e440 |
12 | incmesh a_1 1 |
9ced84ff |
13 | writestl a_1 ${aFile} 0 |
9ced84ff |
14 | |
15 | meshfromstl m1 ${aFile} |
16 | meshcolors m1 elem2 1 |
4754e164 |
17 | vrotate 4 0 0 |
9ced84ff |
18 | vfit |
19 | |
ba00aab7 |
20 | if { [vreadpixel 189 236 -rgb -name] != "BLUE3" } { puts "Error : There is missing triangle" } |
21 | vdump ${imagedir}/${test_image}.png |