1 # =================== OCAF ======================
4 # Testing purpose: Naming selection mechanism
6 # Test case: E4 (ShapeOrientation is not used)
8 # 2. Create cylinder Cyl
9 # 3. Translate Cyl along XYZ
10 # 4. CS = Cut (B2, Cyl)
11 # 5. Make selection for all sub-shapes
13 # 7. Recompute modeling functions
14 # 8. Recompute selections
15 # ===============================================
21 NewDocument D MDTV-Standard
23 AddDriver D Box Cyl Sph Attach XAttach PTxyz PTALine PRLine PMirr Cut Fuse Prism FulRevol SecRevol Fillet
27 set B2 [AddObject D]; ## add object
28 set F2 [AddFunction D $B2 Box]; ## add function
29 BoxDX D $B2 190; ## set argumets of this function
32 InitLogBook D; ## initialize (clean) internal maps of labels
33 ComputeFun D $F2; ## compute the function
34 GetShape D $F2:2 Box2; ## check result
42 set Sel1 [AttachShape D Box2_1_1 ${B2} ${B2} 1]; ## set attachment
43 ## AddDriver D Attach Cyl
44 set Cyl [AddCyl D 70 515 ${Sel1}]
46 GetShape D $Cyl:1:2 CylS
50 set FTr1 [PTranslateDXYZ D $Cyl 100 0 0]
52 GetShape D $Cyl:2:2 CylS
56 set CS [AddCut D $B2 $Cyl]
64 set SL [TestSingleSelection D $B2 0]
65 set SL2 [TestMultipleSelection D $B2 0]
83 #8 Recompute selections