algorithmic modeling for Rhino
I have a 7" column with attributes that can be adjusted with a number slider from minimal to overly dramatic affect.
How would I apply a number for the slider based on the length of the column?
The idea being the further up the column, the more dramatic the effect.
For example:
at 1", the effect is at 1
at 3", the effect is at 3
at 7", the affect is at 7, ect.
I figure it must be some form of formula, but I am uncertain how to call upon other number sliders, or how to set it up.
Thanks!
Tags:
Divide the curve. Now each point along the curve is numbered with an index 0,1,2,3.. etc.
Apply an equation that uses that changing number.
Here's an example of a sin equation that is gradually applied to a curve.
Thanks so much for your response!
I think I'm still confused-
Attached is what I'm working with-
The two variables I wish to adjust relative to the height
Just multiply by the height (which in your case is centroid.Z)
You can modify this equation as much as you like, just don't divide by zero.
Factor = centroid.Z * flair * 2 / (height + 0.001);
Awesome- thanks!
Overall this is generally the effect I'm looking for, however, with this script the mesh breaks :( (see image) - how can I avoid this?
Can I set a min and max domain (.03, .09) for the flair and width, too keep the mesh connected?
Thanks again!
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