mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
Added classes AIS_Animation, AIS_AnimationCamera, AIS_AnimationObjectLocatio. Draw Harness command vanimation has been modified to manage animation timeline. Command vfit has been extended with option -noupdate. Formatting of vviewparams command output has been improved. Functionality of commands vlocreset, vlocmove, vloctranslate, vlocrotate, vlocmirror, vlocscale has been merged into vlocation/vsetlocation. vlocation now can print the current local transformation of the object. v3d/ivtk test group does not call vfit anymore. Fixed misprint in test cases bugs/vis/bug24623_3 and bug25532.
41 lines
813 B
Plaintext
41 lines
813 B
Plaintext
puts "============"
|
|
puts "OCC25276"
|
|
puts "============"
|
|
puts ""
|
|
#######################################################################
|
|
# Visualization - Lighting is broken if some kinds of transformation applied to a shape
|
|
#######################################################################
|
|
|
|
pload ALL
|
|
vinit
|
|
box b1 1 6 1
|
|
vsetdispmode 1
|
|
vdisplay b1
|
|
vconnectto b2 6 0 0 b1
|
|
box b3 7 1 1
|
|
vdisplay b3
|
|
vlocation b3 -translate 0 4 0
|
|
vconnect z 0 0 0 b1 b2 b3
|
|
|
|
vconnect z1 0 0 0 z
|
|
vlocation z1 -translate 10 0 0
|
|
|
|
vconnect z2 0 10 0 z
|
|
vlocation z2 -rotate 0 0 0 1 0 0 90
|
|
|
|
vconnect z3 -10 0 0 z
|
|
vlocation z3 -scale 0 0 0 0.5
|
|
|
|
vconnect z4 0 0 0 z
|
|
vlocation z4 -copyFrom z3
|
|
|
|
psphere sp 3
|
|
vdisplay sp
|
|
vlocation sp -copyFrom z3
|
|
vlocation sp -reset
|
|
|
|
vlocation z -mirror 0 -0.5 0 0 1 0
|
|
vfit
|
|
|
|
vdump $imagedir/${casename}.png
|