remove timing
This commit is contained in:
parent
14c4338534
commit
c7e29463ab
3 changed files with 2 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -558,7 +558,6 @@ class Trace {
|
|||
probe: this.probe.params,
|
||||
trace: this.params,
|
||||
cross: params,
|
||||
// clipTo: codec.encode(params.clipTo)
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue