Dieter @ DWorks Posted June 29, 2006 Share Posted June 29, 2006 Hi, is there some sort of offset command in vectorscript? i can find one, so please help me. I need to offset a polygon. Quote Link to comment
Dieter @ DWorks Posted June 30, 2006 Author Share Posted June 30, 2006 that's not the same! HDuplicate duplicates the original object and moves it, but I need to offset the original so it is bigger Quote Link to comment
ccroft Posted July 1, 2006 Share Posted July 1, 2006 Sorry...I didn't understand. Apparantly there is an undocumented function that has been used successfully by some: OffsetPoly Declaration FUNCTION OffsetPoly (h: HANDLE; dist: REAL; repeat: INTEGER; a: BOOLEAN; b: BOOLEAN, accuracy: INTEGER; c: REAL;): HANDLE; Description Currently Undocumented Function, Given a handle to a polyline draws a offset Polyline with distance dist and returns a handle to the new polyline. The following info is incomplete Parameters h Handle to the polyline to offset from dist distance of offset repeat number of repeat offsets a unknown, has something to do with accuracy b unknown, has something to do with Polyline or Polygon creation accuracy increases the number of vertices c unknown Function Result to new offset poly or a group containing the offset polys. Example NewPathHd:= OffsetPoly(LNewObj, dist, number, FALSE, TRUE, 50, 1); Comment "FALSE, TRUE, 50, 1" are the "experimentally verified recommended" values. A plugin using this function: Frame This MIGHT work on your object. This info comes from http://vcor.net/wiki/index.php/Main_Page Search for 'Offest' or 'Frame' and you can see an example of it in use. Failing this you're probably going to have to write your own. Maybe this will help Charles 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.