3 #source DDataStd_TreeBrowser.tcl
7 NewDocument D MDTV-Standard
11 AddDriver D PntXYZ PntRLT Line3D Attach;
12 set Pnt1 [AddPoint D 0 0 0]; ## add point1
13 ComputeFun D $Pnt1:1; ## compute function
14 GetShape D $Pnt1:1:2 P1; ## check result
16 # referes to result NS
17 GetReference D $Pnt1; ## check is reference set
19 set Pnt2 [AddPoint D 0 200 0];
21 set Pnt3 [AddPoint D 200 200 0];
23 set Pnt4 [AddPoint D 200 0 0];
25 GetShape D $Pnt2:1:2 P2;
26 GetShape D $Pnt3:1:2 P3;
27 GetShape D $Pnt4:1:2 P4;
31 #set Lin1 [ AddLine3D D 0 $Pnt1 $Pnt2 $Pnt3 $Pnt4]
32 #ComputeFun D $Lin1:1;
33 #GetShape D $Lin1:1:2 L1;
37 set Lin2 [ AddLine3D D 1 $Pnt1 $Pnt2 $Pnt3 $Pnt4]
39 GetShape D $Lin2:1:2 L1;
41 #4 Prism (after step #1)
43 AddDriver D Prism Box PTxyz
44 set Prism [AddPrism D $Lin2 300 0]
46 GetShape D $Prism:1:2 Pr
47 GetReference D $Prism; ## check is reference set
51 set B1 [AddBox D 400 140 600];
53 GetShape D $B1:1:2 Box;
57 set FTr1 [PTranslateDXYZ D $B1 -100 -20 -100]
59 GetShape D $B1:2:2 Box
63 AddDriver D Comm Cut Fuse
64 set Com1 [AddCommon D $Prism $B1]
71 AddDriver D Attach Cyl
72 set Sel1 [AttachShape D Pr_5 ${Prism} ${Prism} 0]; ## set attachment
73 set Cyl [AddCyl D 70 515 ${Sel1}]
75 GetShape D $Cyl:1:2 CylS
79 set FTr1 [PTranslateDXYZ D $Cyl -100 200 170]
81 GetShape D $Cyl:2:2 CylS
83 #10 Cut Prism by Cylinder
84 set Cut1 [AddCut D $Prism $Cyl]
91 set SL [TestSingleSelection D $Prism 0]
92 set SL2 [TestMultipleSelection D $Prism 0]
98 PntOffset D $Pnt1 40 25 skip
104 ComputeFun D $Prism:1
111 GetShape D $Cut1:2 Pr
114 #recomputation of entities of the TestSelection commands