zuken86 Posted April 8, 2013 Share Posted April 8, 2013 Is there a fuction to or predefined procedure to access each vertex point of a 2D object in Vectorscript? I want to insert a custom symbol at each vertex of a rectangle. Thanks! Quote Link to comment
Miguel Barrera Posted April 8, 2013 Share Posted April 8, 2013 PROCEDURE GetBBox(h:HANDLE; VAR p1X,p1Y,p2X,p2Y:REAL); This will give you the bounding box of any object. In the case of the rect, it will be the upper-left p1x,p1y and the bottom-right corner and from there you can derive all four corners (i.e. p2x,p1y is the upper-right corner. Quote Link to comment
Hippocode Posted April 9, 2013 Share Posted April 9, 2013 Is there a fuction to or predefined procedure to access each vertex point of a 2D object in Vectorscript? I want to insert a custom symbol at each vertex of a rectangle. Thanks! If your rectangle or any figure was drawn with a path object it would be possible. With a handle to the object you can retrieve the "path" and loop over each vertexpoint. The standard rectangle has no path Quote Link to comment
zuken86 Posted April 10, 2013 Author Share Posted April 10, 2013 Thanks. I will give it a shot! 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.