Grasshopper

algorithmic modeling for Rhino

build a slope lofted from a curve and its offset curve in a gradient range(1/8-1/30)

This a slope for bicycle.

does somebody know how to do that?

or check a parametric slope, if its gradient is always in between 1/30-1/8?

 

Views: 1977

Attachments:

Replies to This Discussion

You can evaluate the normal vector of the surface in many locations. The angle between the normal and the positive Z vector is the same as the slope of the surface.

--

David Rutten

david@mcneel.com

Thank you! David!

can we use the some components to set this criteria for drawing a slope? 

when I change some other inputs of this slope, the gradient of this slope is always in the range of 1/30-1/8? 

That'll be quite tricky, because there are so many ways in which you can modify a surface in order to change slope. It would be easy to measure whether the slope exceeds the angle domain though (see attached)

--

David Rutten

david@mcneel.com

Attachments:

Thanks a lot! David!

I am looking at it now!

I don't understand the result of color. do all the results include in the domain we set, so why they have two colors? when it is red and when it is white?(stupid question?)

In this situation, I mean a slope formed by one curve loft with its own offset curve, can I control the curve in order to keep the surface in this gradient range? 

It's white when the slope angle is between the two angle extremes, red if it's too shallow or too steep.

Question number two is much harder to answer. My file only measures slopes, it has no logic for adjusting the input if the slope is too extreme. You need to decide how you want to change your slope if the constraints aren't met. And even then it may require Kangaroo or Galapagos to actually solve it.

--

David Rutten

david@mcneel.com

Thanks a lot!

For a beginner, for optimize a curve, kangaroo and galapagos which one do you recommend?

This curve actually is a route of bicycle, and will be some branch routes around it. the height and gradient of the slope and the curvature based on the speed of bicycle will be referred to.

It depends on how you want to optimize the curve. I don't know if you're looking for a physical process where forces propagate from steep areas and ultimately deform the shape, or whether it's a matter of finding the right values of a bunch of sliders that result in a correct ramp.

--

David Rutten

david@mcneel.com

a bunch of sliders that can adjust the curve(the slope), and some criteria for the curve. no matter how I adjust the number of sliders, the curve always satisfies the rules.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service