0032155: Tests - remove broken command OCC280
[occt.git] / tests / bugs / vis / bug30561
CommitLineData
52c38ce1 1puts "============"
2puts "0030561: Visualization, PrsMgr_PresentableObject - Keep the local transformation for child in AddChild()"
3puts "============"
4puts ""
5
6pload MODELING VISUALIZATION
7vclear
8vinit View1
9
10psphere m 3
11vdisplay -dispMode 1 m
12vlocation m -setLocation 20 10 20
13box b1 1 1 1
14box b2 1 1 1
15vdisplay b1 -dispMode 1
16vdisplay b2 -dispMode 1
17vlocation b1 -setLocation -10 0 0
18vlocation b2 -setLocation -10 0 0
19
20set r {1 2 3 4 5}
21foreach i $r { psphere c$i 1 }
22foreach i $r { vdisplay -dispMode 1 c$i }
23foreach i $r { vlocation c$i -setLocation [expr 20+10*$i] 10 20 }
24foreach i $r { vchild m -ignoreParentTrsf -add c$i }
25vchild m -add b1
26
27# change main shape's local transformation, the children should be correspondingly moved
28vlocation m -setLocation 100 20 20
29
30# change one of sub-shape's local transformation, other shapes MUST NOT move
31vlocation c4 -setLocation 40 10 0
32
33vfit
34
35checkview -screenshot -3d -path ${imagedir}/${test_image}.png