Grasshopper

algorithmic modeling for Rhino

Hi guys. I know how to move a point a long a curve, but I would like to know if there is a way to increase accuracy of steps. Example: if my geometry is 10.000, i would like that my steps are of 0.05. Hope that someone could help me. Thanks in advance!! ;-)

Views: 1329

Replies to This Discussion

Not sure I understand you.

From three decimal number (10.000) you lowered to two decimal number (0.05). I guess that is decreasing of accuracy.

0.05 is 0.050. Is that what you need?

Ouch, I'm sorry. My geometry is 100 meters, I would like that my steps are of 0.05 meters at least. I can't set slider with 2000 steps because geometry is variable, could be smaller/largest than 100 meters.

The steps always need to be equal?
If that is so, try this:

Attachments:

Your approach works, but I would like to move a point along this geometry with a defined step size (in the example below, geometry length is 138 meters, I defined a step size of 0.5 instead of 0.05 only to be more clear). 

Anyone? Thanks a lot!

have a go with this def, goal is find numbers that could be length parameters of curve at a certain increment, put them in a list, choose one and evaluate it.

My approach would be to divide your curve length by the chosen increment, to get the desired number of steps, feed that number into the series count and the increment into the series step. then choose a number out of the series via slider and listItem, then evaluate by the length of the curve.

Attachments:

This is what I wanted. DIVIDE CURVE is more accurate. Don't like to use SLIDER because max value doesn't match, every time I need to change it or assume it larger than a defined length (unfortunately I don't know another way). Thanks a lot Djordjie and Alex.

There is a problem with my definition: example, if my curve is defined by 200 steps, point can only do a movement from step 0 to 200 (it's consistent), but I would like to go over, like a loop (my curve is closed). Hope that someone could help me!! ;-)

Set W input of ListItem to true. This will wrap indices around the list end.

Great, I didn't know this option. Thanks a lot Hannes!! ;-)

A little curiosity can take you a long way. Just hover over inputs you don't know by heart.

Beautiful words!! ;-)

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service