Grasshopper

algorithmic modeling for Rhino

Displacement with different distance in Z-direction

dear all,

 

I create some points by divide-curve and I want to move all the point only along z-direction with different distance, so that the geometry could keep in an undulation form and symetricall like below.

 

has anybody ideas how to make this?

Views: 3109

Replies to This Discussion

I can help now. Are you looking for a curve in that shape, or a single point that moves in that shape?

hi michael,

sorry, i descripte it more clearly now!

 

to move the points in z-direction is matter and keep them symmetrical ist important!

check out my post below

thx, i will check it soon, it seems a pretty elegant solution!! thx!

Here you go. Two different methods. Both give you a point that moves around in the manner you proscribed.

The first(left) just moves the point on a sine graph as you slide the Angle Slider between 0 and 2*pi.

The second(right) draws a circle on a side of a cylinder (forming a sine shape as well, but different shapes could be substituted). Then using the component Point On Curve, which is another slider, you can move through every point on that curve.

Including screenshots and the GH file with code.

Glad to help with any issues!

Attachments:

IntCrv P=True (I forgott to mark)

That works to create the curve too. The only note I'd make is that your "sine" simulator (i.e. big box) there doesn't look like it's truly doing a sine curve. It looks more like a Gaussian curve in that shot, which isn't gonna give the same even look he had on the original post. But it's totally valid as an option! :)

its good question what michael asked about...how we controll it to get a perfect circle by using this simulator?

the graphmapper is not parametric in all ways. YOu can control the input domain and you can select different graphtypes (right mouse click). a mathimatical input gives you more options and control. soooo... it depends what you are up to.

Throw a "abs(sin(x))" expression in there as the mathematical input and it'll do perfect rises and falls all day Frank.

thx, i think the mathmatical approach works fine and containts every parameter that i can manipulate anytime. here my solution, please comment when u have any better idea ;-)

 

It looks to me like you have met the objectives you set forth and are golden. Is there something else you wanted to do?

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service