I have a curve. I am calling simplify on it. The curve that is returned is the exact same regardless of tolerance. Why might this be? I tested simplify curve in grasshopper and got correct results? Anyone know what’s goin on here?
In my specific case, I have a polyline curve. It has many segments that meet at near tangent. It has many very small segments. I would like to reduce the point count such that the curve is still within some position and angle tolerance.
This function does not work for me because angle tolerance is also important. I’m doing an offset after and the results of the offset are highly dependent on the retention of convex corners. There is also merge parallel segments, but that doesn’t take into account position tolerance. Essentially, I need these two functions combined. Something like simplify curve.
If it is about Polylines only:
as far as I know, Reduce Polyline uses the Douglas-Peucker Algorithm which is simple to implement.
You can adapt that algorithm for your custom needs.