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
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: