algorithmic modeling for Rhino
Do you want to measure the lengths along the curve or in staight lines?
You can use the [Dash Pattern] component if your lengths are measured along the curve. For lengths measured in 3D space it's a lot trickier.
--
David Rutten
david@mcneel.com
Tirol, Austria
David,
Thank you for your quick reply.
I tried to use the dash pattern component but was not sure how to control the gaps. As you can see in the attached image, the gap lands in the end. Basically I want to divide a curve to get the width of panels when I provide the scrpit with the total lenght and the gap I require between the panels or find the gap between the panels when I provide the width and the total lenght of the curve.
Let's back up, I'm having trouble parsing the last sentence.
Your dividing lines, not curves. Correct?
You know how long the total line is and you want panels to be flush to either edge. Correct?
You know the gap size in between two panels, but you don't know the width of the panels. Correct?
You know how many panels you want. Correct?
So you want to know how wide each panel should be. Correct?
Isn't that just:
PanelWidth = TotalLength - (GapSize * (PanelCount-1)) / PanelCount
?
--
David Rutten
david@mcneel.com
Tirol, Austria
David,
It is and initial attempt to understand the basics before I get to making proper rectangular panels.
I was trying to divide straight line.
I know the total length.
I know the gap size which could vary when I provide exact panel width.
I have either the panel count or panel width.
Your formula helped me to get right result on paper, but some how I cannot execute on grasshopper. I am sort of confused.
David,
Thank you.. This is exactly what I wanted.
I couldn't understand one thing though, why did u put 'gap' value as well in the pattern input in the dash component?
Because the dash pattern has a dash for the panels and a gap for the space in between panels. You need to create a pattern that goes like Panel-Gap-Panel-Gap-Panel-Gap-Panel-....
--
David Rutten
david@mcneel.com
Tirol, Austria
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by