Grasshopper

algorithmic modeling for Rhino

Hi everyone,

 

I got the hoopsnake thing working (that I posted yesterday). However, as the scripts runs, I start to get some precision problems.

 

Just the background: I have five seperate tiles, and a script that takes a base tile, selects a random next one, rotates in all options, checks for collisions etc etc... This should end up with a correct random placement of the next tile. (Also preventing placement of a tile that will give problems with placing the next)

 

Something goes wrong when with a certain tile, not all intersections are found. I am not sure where this comes from, since the part of the script that generates the tiles, only uses integers and angles. Everything should precisely fit (all the sides 10 length)

 

When you start hoopsnake, you see that with the 12th iteration, not all intersections are found. When I bake, and zoom in in Rhino (really, really, really, really far!), I see that there is a TINY difference. Can someone tell me how this would be possible? I already tried adjusting the Rhino units to meters (instead of mm) but this didn't help.

 

Would be great if someone could take a look at it!

 

Thanks! Anja

 

image: should find intersection between two possible positions of the new tile and the base shape of already laid tiles.

 

Views: 227

Attachments:

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service