1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/tests/v3d/materials/materials
dpasukhi 05ec4972c3 Testing - Update tests with direct VIS loading #148
XShow and XDisplay XDE require VISUALIZATION for correct work.
In some scenario DRAWEXE can generate a duplicates of the internal static singletons.
This means each dynamic library will have their own instance of the static singleton.
Update all direct library loading to use the XDE plugin mechanism.
This will ensure that the XDE plugin is loaded only once and that the correct instance is used.
Originally issue is reproduced only Linux with dlopen with "RTLD_LAZY".
Can be resolved additionally adding "RTLD_LAZY | RTLD_GLOBAL" for dlopen
2024-11-05 19:45:59 +00:00

22 lines
605 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 VISUALIZATION XDE OCAF MODELING
Close D -silent
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