0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / tests / v3d / materials / colors
CommitLineData
59ee34ef 1puts "========"
2puts "0030930: Draw Harness, ViewerTest - add commands vlistcolors and vlistmaterials listing standard Colors and Materials"
3puts "Generate a table of predefined Colors (Quantity_NameOfColor enumeration)"
4puts "========"
5
6pload MODELING VISUALIZATION
7box b 10 10 10
8explode b F
9
10vclear
11vclose ALL
12vinit View1
13vtop
14
15puts "<a href=${::casename}_table.html>Color Comparison Table</a>"
16
17set aColors [vlistcolors]
18set anY 0
19set anX 0
20foreach aColor $aColors {
21 puts "$aColor"
22 tcopy b_6 ${aColor}
23 vdisplay -noUpdate -dispMode 1 ${aColor}
24 vaspects -noUpdate ${aColor} -setShadingModel unlit -setColor ${aColor}
25 vlocation -noUpdate ${aColor} -setLocation [expr 12*$anX] [expr 12*$anY] 0
26 set anX [expr $anX+1]
27 if { $anX > 25 } { set anX 0; set anY [expr $anY+1] }
28}
29vfit
30
31vdump $::imagedir/${::casename}.png
32vlistcolors $::imagedir/${::casename}_table.html