Grasshopper

algorithmic modeling for Rhino

All, 

I'm trying to get central lines between openings in a screen by using the voronoi component.

It seems to work relatively ok, although there are two errors occuring that i'm aware of that make my result go wrong. 

1. The voronoi component creates additional lines see image:

2. The voronoi component seems to have a boundary too close the points and therefore not all lines are intersecting. see image 2

GH file attached. to check. 

Hope the above makes sense. 

Has someone else had similar problems, or if you know of a solution / work around that would be great.

Thanks a lot, 

Tijl

Views: 745

Attachments:

Replies to This Discussion

Hi Tijl,

the voronoi diagram is definitely wrong. In this particular case it's because you have so many co-circular points. They all generate cells that ought to terminate exactly in the centre of each circle, but due to the inaccurate nature of digital numbers, the algorithm gets confused and starts skipping some intersections. This is something I'll have to look into, but it doesn't look like a quick fix.

There are two ways around this bug:

  1. Slightly randomize all your points so they are no longer co-circular.
  2. Put additional points in the centre of each shape.

I attached files for both ways.

Attachments:

Thanks David, that seems to solve it for now! 

Tijl

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