mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
Removed testgrids 'bugs/vis' and '3rdparty'; tests have been redistributed across other grids. Moved testgrid 'v3d/ivtk' into dedicated 'vtk/ivtk'. Added testgrid 'vselect' dedicated to 3D viewer picking/selection functionality and filled with tests from 'v3d/vertex', 'v3d/face' and similar groups. Added testgrid 'opengl' dedicated to OpenGL driver low-level functionality (GLSL programs and similar) and filled with tests from 'v3d/glsl', 'v3d/raytrace', '3rdparty/fonts', 'bugs/vis' (portion) and similar. Added testgrid 'opengles3' dedicated to OpenGL ES 3.0 driver low-level functionality and reusing tests from 'opengl' testgrid. Subgroup 'opengles3/raytrace' is disabled on Windows, as Ray-Tracing currently requires OpenGL ES 3.2. while ANGLE library implements only OpenGL ES 3.0. Added testgrid 'opengles2' dedicated to OpenGL ES 2.0 driver low-level functionality and reusing a limited subset of passing tests from 'opengl' testgrid. Currently testgrid is activated only on Windows platform when using ANGLE library (properietary OpenGL ES drivers do not allow creation of restricted 2.0 context). Test cases have been cleaned out to put bug description into log, to properly load necessary plugins and to explicitly dump viewer.
86 lines
3.5 KiB
Plaintext
86 lines
3.5 KiB
Plaintext
puts "========"
|
|
puts "Tiled image dump"
|
|
puts "========"
|
|
|
|
set aFontFile ""
|
|
catch { set aFontFile [locate_data_file DejaVuSans.ttf] }
|
|
|
|
pload MODELING VISUALIZATION
|
|
box b 2 3 1
|
|
box b2 50 20 30
|
|
|
|
set aLabelFont "Arial"
|
|
if { "$aFontFile" != "" } {
|
|
vfont add "$aFontFile" SansFont
|
|
set aLabelFont "SansFont"
|
|
}
|
|
|
|
vclear
|
|
vclose ALL
|
|
vinit View1
|
|
vraytrace 0
|
|
vbackground -gradient B4C8FF B4B4B4 -gradientMode VERTICAL
|
|
vsetdispmode 0
|
|
vdisplay -dispMode 1 b
|
|
vfit
|
|
vrotate 0.5 0 0
|
|
vzbufftrihedron
|
|
|
|
catch { vzlayer del 1 }
|
|
set aLayerId [vzlayer add]
|
|
vzlayer $aLayerId -enable depthClear -disable rayTracing
|
|
|
|
vtrihedron trh
|
|
vdisplay -noupdate trh -layer $aLayerId -trihedron topRight 100 100
|
|
|
|
text2brep tcc "Center" -font $aLabelFont -height 30 -pos -40 0 0
|
|
vdisplay -noupdate tcc -2d center -layer $aLayerId -dispMode 1
|
|
polyline lcc -50 -50 0 -50 50 0 50 50 0 50 0 0 0 -50 0 -50 -50 0
|
|
vdisplay -noupdate lcc -2d center -layer $aLayerId
|
|
vsetwidth -noupdate lcc 2
|
|
|
|
text2brep tbl "Bottom-Left" -font $aLabelFont -height 30 -pos 0 3 5
|
|
vdisplay -noupdate tbl -2d bottomLeft -layer $aLayerId -dispMode 1
|
|
polyline lbl 0 0 0 0 100 0 100 100 0 100 50 0 50 0 0 0 0 0
|
|
vdisplay -noupdate lbl -2d bottomLeft -layer $aLayerId
|
|
vsetwidth -noupdate lbl 2
|
|
|
|
text2brep ttl "Top-Left" -font $aLabelFont -height 30 -pos 0 -30 0
|
|
vdisplay -noupdate ttl -2d topLeft -layer $aLayerId -dispMode 1
|
|
polyline ltl 0 -100 0 0 0 0 100 0 0 100 -50 0 50 -100 0 0 -100 0
|
|
vdisplay -noupdate ltl -2d topLeft -layer $aLayerId
|
|
vsetwidth -noupdate ltl 2
|
|
|
|
text2brep ttr "Top-Right" -font $aLabelFont -height 30 -pos -130 -30 0
|
|
vdisplay -noupdate ttr -2d topRight -layer $aLayerId -dispMode 1
|
|
polyline ltr -100 -100 0 -100 0 0 0 0 0 0 -50 0 -50 -100 0 -100 -100 0
|
|
vdisplay -noupdate ltr -2d topRight -layer $aLayerId
|
|
vsetwidth -noupdate ltr 2
|
|
|
|
text2brep tbr "Bottom-Right" -font $aLabelFont -height 30 -pos -180 3 0
|
|
vdisplay -noupdate tbr -2d bottomRight -layer $aLayerId -dispMode 1
|
|
polyline lbr -100 0 0 -100 100 0 0 100 0 0 50 0 -50 0 0 -100 0 0
|
|
vdisplay -noupdate lbr -2d bottomRight -layer $aLayerId
|
|
vsetwidth -noupdate lbr 2
|
|
|
|
vdrawtext t2 "Label" -pos 1 0 1 -font $aLabelFont
|
|
vdisplay b2 -trsfPers zoom -trsfPersPos 1 0 1
|
|
|
|
vdump $::imagedir/${::casename}_409x409_tile0.png
|
|
vdump $::imagedir/${::casename}_409x409_tile128.png -tileSize 128
|
|
vdump $::imagedir/${::casename}_409x409_tile1024.png -tileSize 1024
|
|
vdump $::imagedir/${::casename}_1920x1080_tile0.png -width 1920 -height 1920
|
|
vdump $::imagedir/${::casename}_1920x1080_tile128.png -width 1920 -height 1920 -tileSize 128
|
|
vdump $::imagedir/${::casename}_1920x1080_tile1024.png -width 1920 -height 1920 -tileSize 1024
|
|
diffimage $::imagedir/${::casename}_409x409_tile0.png $::imagedir/${::casename}_409x409_tile128.png 0 0 0 $::imagedir/${::casename}_409x409_tile128diff.png
|
|
|
|
# check dump with stereo
|
|
vstereo anaglyph
|
|
vdump $::imagedir/${::casename}_409x409_stereotile0.png -stereo blend
|
|
vdump $::imagedir/${::casename}_409x409_stereotile128.png -stereo blend -tileSize 128
|
|
vdump $::imagedir/${::casename}_409x409_stereotile1024.png -stereo blend -tileSize 1024
|
|
vdump $::imagedir/${::casename}_1920x1080_stereotile0.png -width 1920 -height 1920 -stereo blend
|
|
vdump $::imagedir/${::casename}_1920x1080_stereotile128.png -width 1920 -height 1920 -stereo blend -tileSize 128
|
|
vdump $::imagedir/${::casename}_1920x1080_stereotile1024.png -width 1920 -height 1920 -stereo blend -tileSize 1024
|
|
diffimage $::imagedir/${::casename}_409x409_stereotile0.png $::imagedir/${::casename}_409x409_stereotile128.png 0 0 0 $::imagedir/${::casename}_409x409_stereotile128diff.png
|