Edit: Spelling & some clarifications
I’m working on a C# component doing the magic as in your Gh definition. See upload below.
I have a question about the Polyline component. For some reason, the Polyline component produces a different result than what I can achieve using C# code to create the same Polyline. The difference appears when the input option Closed is set to Invert, or “True” (Closed = true). I marked this setting with a red ring in Fig 1. The difference in output is marked in Fig 2 below.
My Q: So what is it that causes the “closed” option to give the different result? I just can’t figure it out (so I could mimic it in C# code), because the closed result is the desired result.
Fig 1. A C# version (white ring) along with the original strategy (Gh definition) by @Joseph_Oster:
Fig 2. Different “Naked Edge” result for “closed” Polyline compared to C# created ditto. I marked some examples. The yellow line is the desired result from the Gh Polyline component with “closed” = true:
I added to the Gh definition a Sort component to ensure that only the longest Naked Edge is used for the final point culling.
Notice also that after adding a wire to any C# Component output, the Gh definition must be recomputed for the component to become aware of the change (it then know’s it needs to internally
process the desired output data, which is my optimization trick to skip processing such data which isn’t asked for).
The GH Definition and the C# Component:
ConcaveHull_BorderWidth_Component_R1.1.gh (257.8 KB)
I want to thank @Joseph_Oster again for this cool definition. I wouldn’t have come up with something similar in x thousand years. (out of 5)