Grasshopper

algorithmic modeling for Rhino

Closed IRREGULAR Planar polylines constructed by segment amount and segment lenght

good morning to everyone! i was wondering in the last days if theres a way to generate a closed IRREGULAR Planar Polyline (imagine an Snake) that complies with several rules:

1. all the segments are of the same lenght,

2. it has to be closed (starting from 0,0,0 and ending in 0,0,0)

3. you can specify the amount of segments,

of course the angles formed by the segments would be all different...

until now im able to specify the lenght, and amount iof segments, but im not able to Close it... so no luck in fullfilling all the rules. 

many thanks  in Advance.

Esteban

Views: 386

Replies to This Discussion

This sounds like a job for bicycle repair man.


I mean Kangaroo.

Thank you David, at least now i have an starting Point...  i dont have too much experience with Kangaroo, just a tiny Little... so ill try to imagine something... can you please mention some components that can be useful for me?

thanks again

Hi Esteban,

Here's a definition that takes a closed polyline through a list of points and makes all the segments the same length while keeping the start fixed at the origin.

all in a day's work!

Attachments:

Thank you David, Aakriti and Daniel for your responses! that was exactly what i wanted to do!! thanks!!!

You might wanna look at this example here

https://www.youtube.com/watch?v=CgGuX3ln8a4

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