Files
OCCT/tests/v3d/materials/materials
kgv 59ee34efc0 0030930: Draw Harness, ViewerTest - add commands vlistcolors and vlistmaterials listing standard Colors and Materials
Introduced two new commands vlistcolors listing named colors and vlistmaterials listing standard materials.
These commands also can generate HTML table listing colors/materials with their properties.
vlistmaterials can generate OBJ model for comparing OCCT materials in different viewers.
New test cases use these commands for generating HTML tables.

Graphic3d_MaterialAspect::MaterialType() - added missing getter.
Corrected name of unlit shading model within vaspects and vrenderparams commands.
2019-09-02 19:17:23 +03:00

22 lines
607 B
Plaintext

puts "========"
puts "0030930: Draw Harness, ViewerTest - add commands vlistcolors and vlistmaterials listing standard Colors and Materials"
puts "Generate a table of predefined Materials (Graphic3d_NameOfMaterial enumeration)"
puts "========"
pload XDE OCAF MODELING VISUALIZATION
catch { Close D }
vclear
vinit View1
vaxo
puts "<a href=${::casename}_table.html>Material Comparison Table</a>"
vlistmaterials $::imagedir/${::casename}.obj
ReadObj D $::imagedir/${::casename}.obj
XDisplay -dispMode 1 D -explore
vfit
vdump ${imagedir}/${casename}.png
vlistmaterials $::imagedir/${::casename}_table.html