Naval stuff comes with points rounded to the closest 1/16". If I use curve through point with degree 1, I can do a simple start. Is there any way to simply such a curve so that lines a slight angles will be marged into a single segments?
I’m not sure if it’s exposed in the Rhino GUI, but the polyline class has the MergeColinearSegments method, which sounds like it might be relevant:
AI is in its infancy. Sometimes I provide the AI with a simple file along with a set of instructions (a prompt) so that the result resembles a .3dm-formatted file. Sometimes it works.
There’s also this:
Polyline.ReduceSegments
There is a normal Rhino command in V8 for that as well, ReducePolyline.
_convert
has an angle tolerance and will “reduce” polylines with full control.
my 2 cents - kind regards - tom
Well, the scale of your curve is huge. ReducePolyline is only looking for “superfluous” vertices on a polyline that are within a given linear tolerance of a straight line segment, when it finds them it deletes the unneeded vertices. For example I checked one part, it has a length of 320 feet with 6 segments. Your file is in inches, that’s 3840 inches. CurveDeviation between that and a straight line drawn between the endpoints says ~29 inches. So an input of 1/2" as a tolerance in ReducePolyline isn’t going to do anything.
On that segment, using a tolerance of 30 works to make it a line. 15 leaves two segments. Etc.
Problem Line-long.3dm (33.5 KB)