a87752f3 |
1 | puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_" |
2 | puts "========" |
3 | puts "OCC173" |
4 | puts "(case 1)" |
5 | puts "========" |
6 | puts "" |
7 | ########################################################### |
8 | ## Impossible to change the material or the transparency of the attached BREP shape. |
9 | ########################################################### |
10 | |
11 | restore [locate_data_file OCC173.brep] result |
352ffd73 |
12 | checkshape result |
a87752f3 |
13 | |
4b114473 |
14 | vinit |
15 | tclean result |
a87752f3 |
16 | vdisplay result |
17 | vfit |
18 | vsetdispmode result 1 |
19 | |
f1aa2b62 |
20 | set x_coord 175 |
21 | set y_coord 195 |
22 | |
f1aa2b62 |
23 | checkcolor $x_coord $y_coord 1 0.75 0.15 |
a87752f3 |
24 | |
f1aa2b62 |
25 | if { $stat != 1 } { |
a87752f3 |
26 | puts "Error : Shading is missing in 3D Viewer" |
27 | } |
28 | |
29 | ######################################################## |
30 | vsetmaterial result COPPER |
31 | |
f1aa2b62 |
32 | checkcolor $x_coord $y_coord 0.77 0.32 0.23 |
33 | |
34 | if { $stat != 1 } { |
35 | puts "Error : material of shape is not COPPER" |
a87752f3 |
36 | } |
37 | |
5747059b |
38 | checkview -screenshot -3d -path ${imagedir}/${test_image}.png |