irregular-voronoi
v1.0.2
Published
`irregular-voronoi` makes it dead simple to create voronoi like diagrams constrained to irregular polygons. It ensures that no returned polygon is a MultiPolygon. That each point is in only Polygon. And that all polygons contain a point.
Downloads
56
Readme
irregular-voronoi
irregular-voronoi
makes it dead simple to create voronoi like diagrams constrained to irregular polygons. It ensures that no returned polygon is a MultiPolygon. That each point is in only Polygon. And that all polygons contain a point.
Usage
const irregularVoronoi = require('irrgular-voronoi');
const polygon = { ... };
const points = [ ... ];
const result = irregularVoronoi(polygon, points);
- polygon: Must be a GeoJSON Polygon Feature.
- points: Must be an array of GeoJSON Point Features.