Permalink
Browse files

single polygon case

  • Loading branch information...
1 parent 3b740f6 commit 1b6f25af1bb6c8a3344c2c5b50d37d73e322af19 @lautr3k committed Mar 16, 2016
Showing with 5 additions and 0 deletions.
  1. +5 −0 js/slacer/slicer.js
View
@@ -93,6 +93,11 @@ var SLAcer = SLAcer || {};
};
function makeNodes(polygons) {
+ // single polygon...
+ if (polygons.length == 1) {
+ return { 0: { parents: [], isHole: false } };
+ }
+
// nodes collection
var nodes = {};

0 comments on commit 1b6f25a

Please sign in to comment.