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