1
0
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:
kgv
2019-05-29 15:22:10 +03:00
committed by bugmaster
parent 9aceb23df6
commit edc4ba21c4
5 changed files with 74 additions and 57 deletions

19
tests/bugs/vis/bug30756 Normal file
View 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