mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-25 09:07:26 +08:00
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.
22 lines
607 B
Plaintext
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
|