reduce tolerance of min combing distance to 1mm

This commit is contained in:
casperlamboo 2018-02-01 18:29:20 +01:00
parent 0b6a4a1588
commit 89d4a659db

View File

@ -2,7 +2,7 @@ import Shape from 'clipper-js';
import { subtract, add, scale, normalize, dot, length, distanceTo } from './VectorUtils.js'; import { subtract, add, scale, normalize, dot, length, distanceTo } from './VectorUtils.js';
import { PRECISION } from '../../constants.js'; import { PRECISION } from '../../constants.js';
const TOLERANCE = 5 / PRECISION; const TOLERANCE = 1 / PRECISION;
export default function comb(outline, start, end) { export default function comb(outline, start, end) {
if (distanceTo(start, end) < TOLERANCE) { if (distanceTo(start, end) < TOLERANCE) {