Grasshopper

algorithmic modeling for Rhino

So my problem is quite basic, but I got stuck. I am dividing a curve into equal length segments with Divide. But then I only want to divide it into an even number, so here's my first doubt, the other one would be how to vary the distance between the division points I generate with the Divide Tool. any hints would be great help. Kind regards

Views: 197

Replies to This Discussion

Hi Christo,

 

sounds like you need to add an expression to the Divide N input to ensure even numbers. Try the following:

 

2 * Int(N / 2)

 

Add or subtract 2 if the result is not to your liking.

 

--

David Rutten

david@mcneel.com

Delft, NL

Dank je wel. I will do that. tot ziens

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service