1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/vis/bug27793
kgv 3fe9ce0edd 0027793: Visualization - object drifts at zoom within Graphic3d_TMF_TriedronPers applied
Graphic3d_TransformPers now takes Graphic3d_Camera definition as argument
for methods applying transformation.

Graphic3d_TransformPers::Apply() now computes Graphic3d_TMF_TriedronPers
transformation in the following way:
- The object is moved onto Z focus distance.
- The object is expected to be defined in pixels.
- The Z coordinate on anchor point is used as offset from the view corner in pixels.
- It is now possible to define not only corners of the view, but also middle of the side.
- Graphic3d_TMF_TriedronPers now works with perspective projection.

OpenGl_LayerList::ChangeLayer() - fixed removing of the element in old ZLayer.

OpenGl_Layer::BoundingBox() now takes into account bounding box
of Graphic3d_TMF_TriedronPers presentations for Z-fit operation.
2016-08-26 09:46:43 +03:00

22 lines
455 B
Plaintext

puts "========"
puts "Object drifts at zoom within Graphic3d_TMF_TriedronPers applied"
puts "========"
pload MODELING VISUALIZATION
box b 100 200 300
vclear
vinit View1
vtrihedron t1
vtrihedron t2
vdisplay -dispMode 1 b
vaxo
vdisplay -trsfPers trihedron -trsfPersPos -1 -1 100 t1
vdisplay -trsfPers trihedron -trsfPersPos 1 1 100 t2
vsetlocation t2 0 0 -50
vcamera -persp
vstereo anaglyph
vfit
vzoom 0.05
vdump $imagedir/${casename}.png -stereo blend