Hi all, I need to create a Grasshopper definition that works out 5 line lengths to the nearest whole number including an angled line. Below is a image or link to better illustrate what I mean.
The problem is I have a 5 line shape with three set right angles as illustrated in the image and one angled line and I need to preserve the angled line angle while adjusting the remaining 4 lines.
I have a small amount of room for movement along the x axis for the angled line so as to enable the adjustment of the lengths of the other 4 lines. The key is to arrive at a point where all 5 lines lengths have no decimals (whole numbers).
II have several of these shapes to work out with the unique angle line, so ideally I need a definition that can update for each problem, possibly with a slider to adjust the length of the lines around the predetermined angle.
I look forward to some assistance with my problem.
Thank you, in advance.