You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I've been interested in doing experiments with voronoi "treemaps".
So before you say "well, we already have https://github.com/Kcnarf/d3-voronoi-treemap for that", that is true in principle, but the experiments I have in mind are a bit more more "raw" than this data visualization.
For example, I would like to try out what voronoi stippling in a "multiple pass" fashion would look like (first "stipple" with N points, then inside each of those ten cells "stipple" with another N points, and keep recursing like this until a desired number of total points is reached).
Looking at the currently existing methods, delaunay.renderHull already gives me a convex hull of all points, so if I start with a set of points defining a convex hull, then ensure that all points are inside of it, the triangulation part works out fine. But what I basically am asking for is be able to generate voronoi cells with this convex hull as its bounding box. Would it be complicated to do such a thing?
EDIT: so to be clear, the question is "is this already possible with the current library somehow, or would it require a bunch of funky hacks?"
The text was updated successfully, but these errors were encountered:
JobLeonard
changed the title
Would it be possible to make this work with custom convex hull boundary for the Voronoi cells?Sep 7, 2020
So I've been interested in doing experiments with voronoi "treemaps".
So before you say "well, we already have https://github.com/Kcnarf/d3-voronoi-treemap for that", that is true in principle, but the experiments I have in mind are a bit more more "raw" than this data visualization.
For example, I would like to try out what voronoi stippling in a "multiple pass" fashion would look like (first "stipple" with N points, then inside each of those ten cells "stipple" with another N points, and keep recursing like this until a desired number of total points is reached).
Looking at the currently existing methods,
delaunay.renderHull
already gives me a convex hull of all points, so if I start with a set of points defining a convex hull, then ensure that all points are inside of it, the triangulation part works out fine. But what I basically am asking for is be able to generate voronoi cells with this convex hull as its bounding box. Would it be complicated to do such a thing?EDIT: so to be clear, the question is "is this already possible with the current library somehow, or would it require a bunch of funky hacks?"
The text was updated successfully, but these errors were encountered: