Make minStep jitter handling more dynamic.
This commit is contained in:
parent
27a29d9c66
commit
059d5ee9ba
1 changed files with 2 additions and 1 deletions
|
|
@ -1562,7 +1562,8 @@ function initGridWidget(root, opts = {}) {
|
|||
|
||||
if (pts.length >= 2) {
|
||||
const coarse = [pts[0]];
|
||||
const minStep = 0.02;
|
||||
const minStepPx = 0.75;
|
||||
const minStep = minStepPx / cellSize;
|
||||
for (let i = 1; i < pts.length; i++) {
|
||||
if (dist2(pts[i], coarse[coarse.length - 1]) >= minStep * minStep) {
|
||||
coarse.push(pts[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue