5 ###########################################################################
6 # Some triangles are inverted when writing an STL file
7 ###########################################################################
10 if {[array get env os_type] != ""} {
14 set aFile $imagedir/bug23193_sample.stl
17 stepread [locate_data_file bug23193_sample.stp] a *
18 writestl a_1 ${aFile} 0
20 meshfromstl m1 ${aFile}
22 QARotateV3dView 4 0 0 1
25 set color [QAGetPixelColor 189 236]
26 regexp {RED +: +([-0-9.+eE]+)} $color full rd
27 regexp {GREEN +: +([-0-9.+eE]+)} $color full gr
28 regexp {BLUE +: +([-0-9.+eE]+)} $color full bl
31 set bl_1 [expr round($a)]
33 if { $rd != 0 || $gr != 0 || $bl_1 != 7 } {
34 puts "Error : Color are not equal. There is missing triangle"