I hope you are all fine!.
I hope you can help me with a problem that I have in my program. Please let me explain you:
I made a program to project a rectangle onto a surface. The rectangle can be deformed as if it were a 4-bar mechanism. See the picture below:
P0 is the start point, and with the intersection between two spheres and the surface I can find J1. Now, to calculate J2 I need to know J1 before, and for to calculate J3 I need to know J2 before, and so on.
To do this, I copied and pasted the code N times, but it is not the smartest solution to muy program. I would be very grateful if someone could help me or suggest me some idea of how I can make that the rectangles spread on the surface, without copy the code many times.
NewShearing - Cilinder - copia.gh (56.5 KB)
Thank you for your time!.