Cleanup of panels, extracting outer curves and reordering

I have got a Rhino model having various panels with messed up curves sequencing and duplicate curves. Currently working on just one panel

I used a custom made analyze direction component that I got from here.

I want to achieve the following.

  1. Remove duplicate curves. I am doing it right now manually.
  2. Extract the outermost profiles curves.
  3. Align them in a sequential anticlockwise order.

How do I do it efficiently using scripting?

PANEL CLEANING_Q.gh (56.9 KB)

Analyse Direction.ghpy (33.5 KB)

do you mean using python?

If not, then here’s a way:
PANEL CLEANING_Q.gh (50.3 KB)

1 Like

Fantastic! Thanks a ton!