View Revisions: Issue #29885 |
[ All Revisions ] [ Back to Issue ] |
Summary |
0029885: Visualization, AIS_Manipulator - Translation is done in wrong direction depending on Camera orientation |
|
Revision |
2018-06-20 14:27 by kgv |
|
Steps To Reproduce |
pload MODELING VISUALIZATION
box b 500 500 1 50 100 150
vclear
vinit View1
vzbufftrihedron
vcamera -persp
vaxo
vdisplay -dispMode 1 b
vfit
vmanipulator m -attach b
vmanipulator m -part 0 2 0
vmanipulator m -part 1 2 0
vmanipulator m -part 2 2 0
vmanipulator m -part 0 3 0
vmanipulator m -part 1 3 0
vmanipulator m -part 2 3 0
vmanipulator m -part 2 1 0
vselmode m 2 0
vselmode m 3 0
# if this block is uncommented - second block works as expected
#vmoveto 240 190;
#vselect 240 190;
#vmanipulator m -startTransform 240 190;
#vmanipulator m -transform 240 191;
#vmanipulator m -stopTransform abort
vmoveto 245 220;
vselect 245 220;
vmanipulator m -startTransform 245 220;
vmanipulator m -transform 340 265;
vmanipulator m -stopTransform
if {[vreadpixel 370 300 rgb name] == "BLACK" } { puts "Error" }
Result: object is translated in opposite direction. |
|
Revision |
2018-06-20 14:09 by kgv |
|
Steps To Reproduce |
pload MODELING VISUALIZATION
box b 500 500 1 50 100 150
vclear
vinit View1
vzbufftrihedron
vcamera -persp
vaxo
vdisplay -dispMode 1 b
vfit
vmanipulator m -attach b
vmanipulator m -part 0 2 0
vmanipulator m -part 1 2 0
vmanipulator m -part 2 2 0
vmanipulator m -part 0 3 0
vmanipulator m -part 1 3 0
vmanipulator m -part 2 3 0
vmanipulator m -part 2 1 0
vselmode m 2 0
vselmode m 3 0
# if this block is uncommented - second block works as expected
#vmoveto 240 190;
#vselect 240 190;
#vmanipulator m -startTransform 240 190;
#vmanipulator m -transform 240 191;
#vmanipulator m -stopTransform abort
vmoveto 245 220;
vselect 245 220;
vmanipulator m -startTransform 245 220;
vmanipulator m -transform 340 265;
vmanipulator m -stopTransform
Result: object is translated in opposite direction. |