Grasshopper

algorithmic modeling for Rhino

Hi,

I'm trying to create a voronoi diagram through C#
Since I can't find any information in the SDK I was hoping I could get some help here.

I would like to create a voronoi diagram (from a set of points) which is "trimmed" by a polyline. When I add the end points of the lines surrounding the surface it looks like in the picture attached. But I don't want these points to be a part of the voronoi partition, which they are now.

This is the solver I'm using.

Grasshopper.Kernel.Geometry.Voronoi.Solver.Solve_BruteForce(Node2List, IEnumerable<Node2>outline);

Thanks for any help,

Johanna

Views: 1254

Attachments:

Replies to This Discussion

Hey Johanna,

Ancient history for you by now, but think you could post your script for this? Having trouble getting the data types in order to implement the solver.

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