From c7e29463ab055700caed5d668ce256b345858aa0 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Sat, 14 Jan 2023 19:57:44 -0500 Subject: [PATCH] remove timing --- src/geo/points.js | 2 -- src/kiri-mode/cam/slicer.js | 8 ++------ src/kiri-mode/cam/topo.js | 1 - 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/geo/points.js b/src/geo/points.js index 04124855..d1118361 100644 --- a/src/geo/points.js +++ b/src/geo/points.js @@ -19,7 +19,6 @@ gapp.overlay(base, { * with optional decimation */ function verticesToPoints(array, options) { - console.time('verticesToPoints'); let parr = new Array(array.length / 3), i = 0, j = 0, @@ -122,7 +121,6 @@ function verticesToPoints(array, options) { time: (Date.now() - t) }); - console.timeEnd('verticesToPoints'); return parr; } diff --git a/src/kiri-mode/cam/slicer.js b/src/kiri-mode/cam/slicer.js index 6eaf2434..f3a1bca0 100644 --- a/src/kiri-mode/cam/slicer.js +++ b/src/kiri-mode/cam/slicer.js @@ -83,7 +83,6 @@ class Slicer { zList[z] = (zList[z] || 0) + 1; } - console.time('compute features'); for (let i = 0, il = points.length; i < il; ) { let p1 = points[i++]; let p2 = points[i++]; @@ -126,7 +125,6 @@ class Slicer { } } } - console.timeEnd('compute features'); return this; } @@ -144,7 +142,6 @@ class Slicer { let zScale = this.zScale = 1 / (zMax / bucketCount); let buckets = this.buckets = []; - console.time('compute buckets'); if (bucketCount > 1) { buckets.length = bucketCount; // create empty buckets @@ -169,7 +166,6 @@ class Slicer { } } } - console.timeEnd('compute buckets'); return this; } @@ -369,8 +365,8 @@ class Slicer { bounds = this.bounds, boff = opt.boff || opt.off || 0, // bottom offset toff = opt.toff || opt.off || 0, // top offset - zmin = opt.min !== undefined ? opt.min : this.bounds.min.z + boff, - zmax = (opt.max || this.bounds.max.z) - toff, + zmin = opt.min !== undefined ? opt.min : bounds.min.z + boff, + zmax = (opt.max || bounds.max.z) - toff, steps = (zmax - zmin) / step, rem = steps % 1 != 0 ? 0 : 1, count = Math.floor(steps) + rem, diff --git a/src/kiri-mode/cam/topo.js b/src/kiri-mode/cam/topo.js index 6ab77b24..afe59da5 100644 --- a/src/kiri-mode/cam/topo.js +++ b/src/kiri-mode/cam/topo.js @@ -558,7 +558,6 @@ class Trace { probe: this.probe.params, trace: this.params, cross: params, - // clipTo: codec.encode(params.clipTo) })); } }