algorithmic modeling for Rhino
If you have a polyline with small segments you can use the Collapse Component generate a polyline that averages them two control points either side.
Example below shows the original curve in red has a segment that is 0.95 in length and thus below the tolerance so a the rebuilt curve is shown in green.
This is not the same as the simplify component which will remove a control point if it lies in a straight line between its neighbours.
Also note that this is an iterative process. the shortest segment is collapsed first, then all segments are re-measured and the new shortest segment is collapsed until the shortest segment is longer than the collapse threshold. If you have a number of consecutive short segments the outcome might therefore be not what you expect.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
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