remove minion-based cam slicing

This commit is contained in:
Stewart Allen 2023-01-08 14:26:23 -05:00
commit 883bf90091
5 changed files with 5 additions and 85 deletions

View file

@ -16,7 +16,7 @@ gapp.overlay(base, {
/**
* converts a geometry point array into a kiri point array
* with auto-decimation
* with optional decimation
*/
function verticesToPoints(array, options) {
let parr = new Array(array.length / 3),
@ -49,7 +49,7 @@ function verticesToPoints(array, options) {
// maxpass = max number of decimations
threshold = threshold > 0 ? threshold : config.decimate_threshold;
precision = precision >= 0 ? precision : config.precision_decimate;
maxpass = maxpass >= 0 ? maxpass : 10;
maxpass = maxpass >= 0 ? maxpass : 0;
// decimate until all point spacing > precision
if (maxpass && precision > 0.0)