work on getting index translated widget geometry

This commit is contained in:
Stewart Allen 2022-11-01 19:55:30 -04:00
commit 2af361fc5a
8 changed files with 57 additions and 37 deletions

View file

@ -131,8 +131,7 @@ class Slicer {
let bucketCount = Math.max(1, Math.ceil(zMax / (zSum / points.length)) - 1);
let zScale = this.zScale = 1 / (zMax / bucketCount);
let buckets = this.buckets = [];
if (bucketCount > 1) {
if (bucketCount > 1 && !this.options.nobucket) {
// create empty buckets
for (let i = 0; i <= bucketCount + 1; i++) {
buckets.push([]);