I’m using a workflow that takes floor plan imports, extracting their curves, getting offsets, and drawing lines from the original curve vertices to the offset curve vertices. These plans are generally orthagonal. I’m trying to automate this using Grasshopper.
However, sometimes the imports either have very slight protrusions that I would like to ignore (example A), or they have an extra control point that is offset from the curve by a very small distance, that creates an extra segment (Type B) and cannot be removed by SimplifyCrv. This means the offset often has a different number of vertices than the original.
For Type B, I am thinking I can somehow query each vertice to find out the angle between segments there, and delete it if it is 0<a<5 or 175<a<180, and then create a polyline using the leftover vertices, but i’m not sure how to do the first step.
Thank you in advance.