Draft:
Preliminary outline of script to order pre-existing points on a curve.
The result would be an array or objectlist of the points, in order
from the curve startPt to its endPt. (Flip option?)
Select the curve.
Clone the curve.
MoI5beta: Merge the cloneCurve, to get rid of any former segmentation.
(The cloneCurve probably cannot cross over itself?, or else do...?)
Select the points on the curve.
Remove duplicate points.
Select the desired start point of the cloneCurve.
Compare desiredStartPt with actual startPt of the cloneCurve and Flip cloneCurve if necessary.
Trim cloneCurve with the pre-existing points.
Get the segments, which will be in order from start to end of curve.
Place desiredStartPt in orderedPtList objectlist.
Get the endPt of all of the segments, one by one, and place them in orderedPtLIst.
Delete cloneCurve
- Brian
Maybe there is a better way, or MoI already can order points on a curve?
|