9ced84ff |
1 | puts "============" |
2 | puts "OCC23193" |
3 | puts "============" |
4 | puts "" |
5 | ########################################################################### |
6 | # Some triangles are inverted when writing an STL file |
7 | ########################################################################### |
8 | pload QAcommands |
9 | |
9ced84ff |
10 | |
60874ff8 |
11 | set aFile $imagedir/bug23193_sample.stl |
9ced84ff |
12 | |
13 | vinit |
14 | stepread [locate_data_file bug23193_sample.stp] a * |
b9c1e440 |
15 | incmesh a_1 1 |
9ced84ff |
16 | writestl a_1 ${aFile} 0 |
9ced84ff |
17 | |
18 | meshfromstl m1 ${aFile} |
19 | meshcolors m1 elem2 1 |
4754e164 |
20 | vrotate 4 0 0 |
9ced84ff |
21 | vfit |
22 | |
f1aa2b62 |
23 | set x_coord 189 |
24 | set y_coord 236 |
9ced84ff |
25 | |
ccadc126 |
26 | #checkcolor $x_coord $y_coord 0 0 0.7 |
9ced84ff |
27 | |
ccadc126 |
28 | if { "[vreadpixel $x_coord $y_coord rgb name]" != "MATRABLUE" } { |
f1aa2b62 |
29 | puts "Error : There is missing triangle" |
9ced84ff |
30 | } |
31 | |
5747059b |
32 | checkview -screenshot -3d -path ${imagedir}/${test_image}.png |
9ced84ff |
33 | |
34 | |
35 | |
36 | |