Jump to content
Developer Wiki and Function Reference Links ×

Length of linear 3D polys?


Recommended Posts

Nicholas,

???Here is a short script that will return the length of one 2-vertex 3D Poly. Of course, a favorite program of mine will do the same and a whole lot more. ;-)

???If you are looking for the length of all selected Polys, that's easy, too.

PROCEDURE Length3DLine;
VAR
P0, P1 :Vector;
BEGIN
GetPolyPt3D(FSActLayer, 0, P0.x, P0.y, P0.z);
GetPolyPt3D(FSActLayer, 1, P1.x, P1.y, P1.z);
Message(Norm(P1-P0));	{ Length of vector between 2 points }
END;
Run(Length3DLine);

Happy New Year,

Raymond

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...