joshtreverton Posted January 17, 2013 Share Posted January 17, 2013 Hi All, In 2D I am drawing a curved segment and then Duplicating and Flipping the segment around a Locus. Once segment has been Duplicated and Flipped is there a way of either hiding or getting rid of the Locus pt. such that it doesn't appear? It really needs to be part of the script, or alternativel is there a way of Mirroring the segment around 0,0 without the need of Locui? Here is the script extract: Procedure DrawCurve2D; BEGIN FillPat(0); BeginGroup; BEGIN Arc(-2000-62.5,62.5,2000+62.5,-2000-62.5-2000,30,30); Arc(-2000+62.5,-62.5,2000-62.5,-2000+62.5-2000,30,30); END; Rotate3D(#90d,#0d,#0d); DSelectAll; MoveTo (0,62.5); LineTo (0,-62.5); RotatePoint (0, -2000, -(90-30)); DSelectAll; MoveTo (0,62.5); LineTo (0,-62.5); RotatePoint (0, -2000, -(90-30-30)); DSelectAll; EndGroup; Duplicate(0,0); Locus(0, 0); FlipHor; END; RUN (DrawCurve2D); Cheers, Joshua Quote Link to comment
Miguel Barrera Posted January 17, 2013 Share Posted January 17, 2013 Use DelObject(objHdl: HANDLE) to remove the locus VAR locHdl: HANDLE; .... BEGIN .... .... Locus(0, 0); locHdl:= LNewObj; FlipHor; DelObject(locHdl); END; Quote Link to comment
joshtreverton Posted January 17, 2013 Author Share Posted January 17, 2013 A-Ha, Excellent, I've not had much experience of using Loci so didn't know that they behaved just like any other object. The script worked as I wanted, Thanks Miguel. Joshua Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.