Hi everyone, I need help regarding my code. I created a rectangle that is inside the surface, however when I change the input for the area there are portions of the rectangle that still overlaps on the edges of the surface just like in the photo below.
what I want to happen is that the rectangle should adapt its shape everytime I change the position and its area
note: the code is stored in the component highlighted in yellow
kkkkk.3dm (152.6 KB)
SPATIAL CONFIGURATION FROM SCRATCH.gh (23.9 KB)