Jump to content

Connecting 2D Loci with a Line


Recommended Posts

There is a tiny chance that the points are in a sensible sequence. No harm done it you try this script:

PROCEDURE JoinTheDots;

VAR

obHd : HANDLE;

x1, y1, x2, y2 : REAL;

BEGIN

obHd := LACTLAYER;

GETLOCPT(obHd, x1, y1);

WHILE obHd <> NIL DO BEGIN

obHd := PREVOBJ(obHd);

GETLOCPT(obHd, x2, y2);

MOVETO(x1, y1);

LINETO(x2, y2);

x1 := x2;

y1 := y2;

END;

END;

RUN(JoinTheDots);

Link to comment

The points are in a relatively sensible sequence. Actually it is a surface tracing device that traces the face of a golf club to measure the scorelines; so, the "x" value is always increasing as the trace moves over the surface and the "y" value varies with "x". I am new to scripts but will play with it.

THANKS A TON for your help!

Dave

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...