Hi All,
I am having some trouble with a euclidean sort of some points and also with the sweep_2_rails button...
Sorting: I want to sort some curve intersection points in the order they lie along the curve's length but the euclidean sort is ordering them by increasing x value (I think... I must confess I'm not 100% sure what a euclidean sort actually does :-( ). this works most of the time, but above a certain number of division points along the curve, this sort order is not right because the arc is more than 180degrees so, above a certain number of division points, the end points are not in the right order.
You can see this in the example attached that the model works up to 15 division points and after that, the intersection points on the rear arc are in the wrong order to draw the polyline through. Watch the sweep rails end up the wrong length near the ends of the arch!
Sweep2: This works if I pull out just the 2 rails and profile i want... you can change the index of the rails and profile from the lists and they work for each section of the arch but if i try to do all at once, nothing happens but I get no runtime errors. Why does it work one at a time, but not all at once?
Further work: I want to take each sweep surface and flatten them - any ideas how to do this in GH?
Then I want to lay the flattened surfaces out in a pattern on the x-y plane and apply an offset curve to them. The offset could be different in th x and y directions.
To get this model to work, set the first curve in the GH file to the front arc in the Rhino file and the second curve in the GH file to the rear arc.Then make sure the file button points to wherever you save the rails.txt file
Any help or advice would be appreciated and I hope you find this interesting!
Thanks!
Tags:
- Attachments:
-