aaryan Posted January 28, 2013 Share Posted January 28, 2013 Dear All, I have a list of points which lies on the curve, is there a way to find which point has maximum distance on a curve. If so please give me a solution. Thanks in advance Aaryan Quote Link to comment Share on other sites More sharing options...
Tharwat Posted January 28, 2013 Share Posted January 28, 2013 maximum distance from which point ? Quote Link to comment Share on other sites More sharing options...
aaryan Posted January 28, 2013 Author Share Posted January 28, 2013 Thanks Tharwat Maximum distance along curve from starting point of curve. suppose i have 3 points in a list which lies exactly on curve object, one point is at 100m and second is at 101.235m and third may be at 94.222m. Like this second point has maximum distance. Any guess Quote Link to comment Share on other sites More sharing options...
Tharwat Posted January 28, 2013 Share Posted January 28, 2013 This function is to give you the far most distance from a given point . (defun foo (l p / d dis mx) (setq d 0.) (foreach pt l (if (> (setq dis (distance p pt)) d) (setq mx pt d dis ) ) ) mx ) (foo <list of points> <any point >) Quote Link to comment Share on other sites More sharing options...
pBe Posted January 28, 2013 Share Posted January 28, 2013 Linky:-- > Find farthest points Quote Link to comment Share on other sites More sharing options...
aaryan Posted January 28, 2013 Author Share Posted January 28, 2013 Thanks Both.. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted January 28, 2013 Share Posted January 28, 2013 For the straight line distance, use the distance function; for the distance along the curve, use the vlax-curve-getdistatpoint function. Quote Link to comment Share on other sites More sharing options...
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.