fix drill selection
This commit is contained in:
parent
ee78dd41e7
commit
dd2a7d0b9a
10 changed files with 146 additions and 118 deletions
|
|
@ -1,13 +1,12 @@
|
|||
/** Copyright Stewart Allen <sa@grid.space> -- All Rights Reserved */
|
||||
import { base } from '../../../geo/base.js';
|
||||
import { kiri } from '../../kiri.js';
|
||||
import { config, newOrderedLine, newPoint } from '../../../geo/base.js';
|
||||
|
||||
import { base } from '../../geo/base.js';
|
||||
import { newPoint } from '../../geo/point.js';
|
||||
import { newOrderedLine } from '../../geo/line.js';
|
||||
|
||||
const { base, kiri } = root;
|
||||
const { config, newOrderedLine, newPoint } = base;
|
||||
const { config } = base;
|
||||
|
||||
class Slicer {
|
||||
export class Slicer {
|
||||
|
||||
static intersectPoints = intersectPoints;
|
||||
static checkOverUnderOn = checkOverUnderOn;
|
||||
|
|
@ -280,7 +279,7 @@ function removeDuplicateLines(lines, debug) {
|
|||
// find new endpoints that are not shared point
|
||||
let p1 = l1.p1 != point ? l1.p1 : l1.p2,
|
||||
p2 = l2.p1 != point ? l2.p1 : l2.p2,
|
||||
newline = base.newOrderedLine(p1,p2);
|
||||
newline = newOrderedLine(p1,p2);
|
||||
// remove deleted lines from associated points
|
||||
p1.group.remove(l1);
|
||||
p1.group.remove(l2);
|
||||
|
|
@ -317,8 +316,3 @@ function removeDuplicateLines(lines, debug) {
|
|||
|
||||
return output;
|
||||
}
|
||||
|
||||
kiri.topo_slicer = Slicer;
|
||||
|
||||
|
||||
export { checkOverUnderOn, intersectPoints, getCachedPoint, makeZLine, removeDuplicateLines, cachePoint, addLinesToPoint, min, max, len, pts, i, x0, y0, z0, x1, y1, z1, x2, y2, z2, minz, maxz, p0, p1, p2, ret, z, points, zMin, zMax, phash, lines, where, add2, line, delta, ip, j, cached, output, cp, l1, Slicer };
|
||||
|
|
|
|||
Loading…
Reference in a new issue