You have modified the code in unfortunate ways that make it harder… From last October:
P.S. I added the gray group (below) to the old code. It isolates the surface fragments above and/or below the twisted (non-planar) surface.
controlling twist_2023Jan12a.gh (37.0 KB)
