Hi! I have 10 polylines within a boundary (dashed black line), all of which encompass the same area. I’m seeking a method to ensure that the lengths of the red dashed lines are equal. To illustrate, envision each polyline as a building, and my goal is to provide the yellow polylines with equal access to the blue polyline.
To give you more background and clarity on my inquiry, I’ve already divided my boundary into 10 equal polylines and identified the one with more neighbors (polyline number 0 or the blue one). This part has been successfully addressed, and it’s not the primary focus of my current question. Now, my objective is to ensure that every yellow polyline has the same length as the segment that connects it to the blue polyline.
In each yellow polyline, you’ll notice that one edge is connected to a segment of the blue polyline. The central query revolves around achieving equal lengths for these segments corresponding to the segments of the blue line. Any insights or assistance on accomplishing this would be highly appreciated!
Thank you for taking the time to consider my question, and I apologize for any confusion caused by my previous explanations.
I’m attempting to provide another perspective to convey my question more clearly. In the attached image, there are five rectangles, with one positioned in the middle (labeled as number 0). My inquiry pertains to understanding how to adjust the segments of this specific rectangle to transform it into a square with equal dimensions. Your insights on this matter would be greatly appreciated rectangle.3dm (64.4 KB)
Thank you for your time. The curves are internalized, and they become visible when you zoom out. Nonetheless, I appreciate your response to my second question. I will seek a solution for the first question.
Apologies for the extended preamble in my question. I’ve uploaded the new .gh file, aiming for a clearer presentation of the inquiry. question.gh (30.5 KB)
Perhaps I should apologize for the lack of clarity on my side - the curves you want to share/internalize result after operations using components found in plug-ins you’re currently using but that I myself do not have installed:
Anyway, assuming your goals are (1) equalizing the segments of the central curve and (2) having the neighboring curves follow this change (note: I admit I do not fully understand what these neighboring curves should do, just guessing they should follow), one thing to try could be Spatial Deform - here’s a hypothetical case: question (b).gh (14.7 KB)
Oh, that’s the solution!Thank you so much for your time, and I apologize for not providing all the necessary information at the beginning. But this is exactly what I was looking for. Could you please share the .gh file? I’d like to apply this definition to the polylines I mentioned earlier.
And I’m sorry again; it’s my first question, and I realize it might not have been clear enough.
(Sure, I can flatten the outputs, but it results in a strange shape.)
Could you please try running the definition on these curves? Thank you! question (c).gh (19.4 KB)
I’ve replaced the zombie kangaroo solver with the bouncy one (tweaked the damping parameter to slow it down) and keep the shape from going wild when equalizing its lengths.