@turf/convex
Advanced tools
Comparing version 3.0.16 to 3.0.17
@@ -80,3 +80,5 @@ var each = require('turf-meta').coordEach, | ||
var hull = convexHull(points); | ||
if (hull.length > 0) { | ||
// Hull should have at least 3 different vertices in order to create a valid polygon | ||
if (hull.length >= 3) { | ||
var ring = []; | ||
@@ -83,0 +85,0 @@ for (var i = 0; i < hull.length; i++) { |
{ | ||
"name": "@turf/convex", | ||
"version": "3.0.16", | ||
"version": "3.0.17", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
13692
103