Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request; weighted voronoi #1893

Closed
vanderlee opened this issue May 29, 2014 · 3 comments
Closed

Feature request; weighted voronoi #1893

vanderlee opened this issue May 29, 2014 · 3 comments
Milestone

Comments

@vanderlee
Copy link

Weighted voronoi would be great.

As described here: http://en.wikipedia.org/wiki/Weighted_Voronoi_diagram

Each coordinate could take an optional third value which is multiplied with the calculated distance to that coordinate (so the multiplicative variant). Perhaps just an optional extra argument to voronoi() with a index-corresponding array of weights? Would be even more awesome if an option could be supplied to choose whether to use multiplicative or additive weighted. Seems to me if one is implemented, the other can't be much more work.

When looking at the voronoi sourcecode, it very quickly dives into core D3 code, which I know nothing about, so I'm not able to add this myself.

@mbostock
Copy link
Member

@mbostock mbostock added this to the Icebox milestone Oct 21, 2015
@Fil
Copy link
Member

Fil commented Oct 2, 2016

This issue could be closed, being a duplicate of d3/d3-voronoi#5 (and #2401).

@mbostock
Copy link
Member

mbostock commented Oct 2, 2016

Yep. Moved to d3/d3-voronoi#5.

@mbostock mbostock closed this as completed Oct 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants