diff --git a/src/voxel/vx_contour.scad b/src/voxel/vx_contour.scad index 6d24aa81..ae808c63 100644 --- a/src/voxel/vx_contour.scad +++ b/src/voxel/vx_contour.scad @@ -1,10 +1,10 @@ use <_impl/_vx_contour_impl.scad>; use ; -function vx_contour(points) = +function vx_contour(points, sorted = false) = let( // always start from the left-bottom pt - sortedXY = sort(points, by = "vt"), + sortedXY = sorted ? points : sort(points, by = "vt"), fst = sortedXY[0] + [-1, -1] ) _vx_contour_travel(sortedXY, fst, fst); \ No newline at end of file