mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 05:37:55 +01:00
rename vectorutils
This commit is contained in:
parent
5944153de7
commit
03f95b7570
@ -1,4 +1,4 @@
|
||||
import { divide } from './helpers/VectorUtils.js';
|
||||
import { divide } from './helpers/vector2D.js';
|
||||
import { PRECISION } from '../constants.js'
|
||||
|
||||
export default function applyPrecision(layers) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { normalize } from './helpers/VectorUtils.js';
|
||||
import { normalize } from './helpers/vector2D.js';
|
||||
|
||||
function addLine(geometry, lineLookup, lines, a, b, faceIndex) {
|
||||
let index;
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { scale, distanceTo } from './VectorUtils.js';
|
||||
import { scale, distanceTo } from './vector2D.js';
|
||||
import { PRECISION, VERSION } from '../../constants.js';
|
||||
|
||||
export const MOVE = 'G';
|
||||
|
@ -1,5 +1,5 @@
|
||||
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 './vector2D.js';
|
||||
import { PRECISION } from '../../constants.js';
|
||||
|
||||
const TOLERANCE = 1 / PRECISION;
|
||||
|
@ -30,5 +30,4 @@ export const normalize = (v) => {
|
||||
x: v.x / l,
|
||||
y: v.y / l
|
||||
};
|
||||
}
|
||||
export const clone = (v) => ({ x: v.x, y: v.y });
|
||||
};
|
@ -1,4 +1,4 @@
|
||||
import { subtract, normal, normalize, dot, almostEquals } from './helpers/VectorUtils.js';
|
||||
import { subtract, normal, normalize, dot, almostEquals } from './helpers/vector2D.js';
|
||||
|
||||
export default function intersectionsToShapes(intersectionLayers, faces, openObjectIndexes, settings) {
|
||||
const layers = [];
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { length, distanceTo } from './helpers/VectorUtils.js';
|
||||
import { length, distanceTo } from './helpers/vector2D.js';
|
||||
import Shape from 'clipper-js';
|
||||
|
||||
export default function optimizePaths(slices, settings) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import GCode from './helpers/GCode.js';
|
||||
import comb from './helpers/comb.js';
|
||||
import { divide } from './helpers/VectorUtils.js';
|
||||
import { divide } from './helpers/vector2D.js';
|
||||
import { PRECISION, Z_OFFSET } from '../constants.js';
|
||||
|
||||
const PROFILE_TYPES = ['support', 'innerShell', 'outerShell', 'innerInfill', 'outerInfill', 'brim'];
|
||||
|
Loading…
Reference in New Issue
Block a user