mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0030756: Visualization, TKOpenGl - capping plane does not work for ZLayer with non-zero origin
OpenGl_CappingPlaneResource::updateTransform() now takes into account ZLayer origin. Fixed VT_ProcessKeyPress() passing arbitrary input to Draw::Atoi() leading to messages in console like "unclosed braces".
This commit is contained in:
19
tests/bugs/vis/bug30756
Normal file
19
tests/bugs/vis/bug30756
Normal file
@@ -0,0 +1,19 @@
|
||||
puts "============="
|
||||
puts "0030756: Visualization, TKOpenGl - capping plane does not work for ZLayer with non-zero origin"
|
||||
puts "============="
|
||||
|
||||
pload MODELING VISUALIZATION
|
||||
box b 1 2 3
|
||||
vclear
|
||||
vclose ALL
|
||||
vinit View1
|
||||
vzbufftrihedron
|
||||
vaxo
|
||||
vdisplay -dispMode 1 b
|
||||
vfit
|
||||
vclipplane p 1 -equation 0 1 0 -1 -set -capping 1
|
||||
if { [vreadpixel 200 200 rgb name] != "GRAY13" } { puts "Error: capping does not work with zero origin" }
|
||||
vzlayer DEFAULT -origin 0 10 0
|
||||
if { [vreadpixel 200 200 rgb name] != "GRAY13" } { puts "Error: capping does not work with non-zero origin" }
|
||||
|
||||
vdump ${imagedir}/${casename}.png
|
Reference in New Issue
Block a user