algorithmic modeling for Rhino
Hello,
i have a list of points lying on a curve.
i need to evaluate the distances between each consecutive point.
the points are 6 so i have to find 6 distances. is there a way to do it, without taking out every single item from the list? maybe with a series component or something similar?
thank you.
Tags:
thank you!! i get the same result also drawing a polyline between points and then exploding it and with the component relative differences. thank you for yor help :)
NOTE: Both of Hyungsoo Kim's methods measure distance along the curve, which isn't the same as the distance between points unless the "curve" is a straight line (as it is in his example). Andrea's polyline method measures linear distance between points, which will give different results when the curve is not a straight line.
The polyline results can also be calculated like this ("Linear Distance Between Points"):
thanks joseph!
i have another question.
i got two lists of points created from intersection of multiple curves. Some of these points are really close but they are on different lists. is there a way to merge two points really close into just one point?
i know i should open a new discussion, but if you know the answer, this will be faster.
thanks in advance :)
By "merge two points", I assume you mean to use the point half way between them?
Where there's a will there is a way but that point won't necessarily be on either one of the curves anymore so there might be unwanted consequences. How you do it depends very much on the nature of your data/tree lists and code so off hand, I can't think of any generic solution.
i meant to use one of them instead of both..however i resolved it using cull duplicates..first it wasn't working because i didn't click on flatten data!
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by