Aligning grid to a edge of polygon( Pls help me)

hey, i am trying to create a square grid inside a polygon, and i want the grid to be aligned to the longest curve of the polygon.


grid_srf_2022May02.gh (44.6 KB)
Recovered model - RhinoAutosave.3dm (298.2 KB)

This is a way

grid_srf_2022May02__.gh (47.9 KB)

1 Like

Thank you for helping, I have 2 problems here still.

  1. when i use multiple curves at the same time its not working

  2. When i see the same code on other curves, i am aiming for grid to align with the longest side of that polygon

grid_srf_2022May02__.gh (18.4 KB)

1 Like

thank you very much

In cases like this you need use Discontinuity and Shatter

grid_srf_2022May02__.gh (23.5 KB)

1 Like