mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-26 10:19:45 +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.
36 lines
709 B
Plaintext
36 lines
709 B
Plaintext
puts "============"
|
|
puts "OCC26726 erase selected objects"
|
|
puts "============"
|
|
puts ""
|
|
pload VISUALIZATION
|
|
|
|
vclear
|
|
vclose all
|
|
vinit View1
|
|
vsetdispmode 1
|
|
|
|
box b0 5 0 0 1 1 1
|
|
box b1 0 5 0 1 1 1
|
|
box b2 0 0 5 1 1 1
|
|
box b3 5 5 5 1 1 1
|
|
|
|
vdisplay b0 b1 b2 b3
|
|
|
|
vdump $imagedir/${casename}_0.png
|
|
|
|
vfit
|
|
|
|
vselect 0 0 500 500
|
|
verase
|
|
|
|
vdump $imagedir/${casename}_1.png
|
|
|
|
set info_b0 [vreadpixel 205 355 name]
|
|
set info_b1 [vreadpixel 205 190 name]
|
|
set info_b2 [vreadpixel 60 100 name]
|
|
set info_b3 [vreadpixel 350 100 name]
|
|
|
|
if { $info_b0 != "BLACK 0" || $info_b1 != "BLACK 0" || $info_b2 != "BLACK 0" || $info_b3 != "BLACK 0" } {
|
|
puts "Error: OCC26726 is reproduced. AIS_InteractiveContext::EraseSelected is incorrect."
|
|
}
|