mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 11:33:49 +01:00
format settings deconstructing
This commit is contained in:
parent
3b4dbc0d4a
commit
fdbb1469ee
@ -8,7 +8,9 @@ const offsetOptions = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default function addBrim(slices, settings) {
|
export default function addBrim(slices, settings) {
|
||||||
let { brim: { offset: brimOffset } } = settings;
|
let {
|
||||||
|
brim: { offset: brimOffset }
|
||||||
|
} = settings;
|
||||||
brimOffset /= PRECISION;
|
brimOffset /= PRECISION;
|
||||||
|
|
||||||
const [firstLayer] = slices;
|
const [firstLayer] = slices;
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
import * as THREE from 'three';
|
import * as THREE from 'three';
|
||||||
|
|
||||||
export default function calculateLayersIntersections(lines, settings) {
|
export default function calculateLayersIntersections(lines, settings) {
|
||||||
const { layerHeight, dimensions: { z: dimensionsZ } } = settings;
|
const {
|
||||||
|
layerHeight,
|
||||||
|
dimensions: { z: dimensionsZ }
|
||||||
|
} = settings;
|
||||||
|
|
||||||
const numLayers = Math.floor(dimensionsZ / layerHeight);
|
const numLayers = Math.floor(dimensionsZ / layerHeight);
|
||||||
|
|
||||||
|
@ -9,7 +9,11 @@ const offsetOptions = {
|
|||||||
|
|
||||||
export default function generateInnerLines(slices, settings) {
|
export default function generateInnerLines(slices, settings) {
|
||||||
// need to scale up everything because of clipper rounding errors
|
// need to scale up everything because of clipper rounding errors
|
||||||
let { layerHeight, nozzleDiameter, shell: { thickness: shellThickness } } = settings;
|
let {
|
||||||
|
layerHeight,
|
||||||
|
nozzleDiameter,
|
||||||
|
shell: { thickness: shellThickness }
|
||||||
|
} = settings;
|
||||||
nozzleDiameter /= PRECISION;
|
nozzleDiameter /= PRECISION;
|
||||||
shellThickness /= PRECISION;
|
shellThickness /= PRECISION;
|
||||||
const nozzleRadius = nozzleDiameter / 2;
|
const nozzleRadius = nozzleDiameter / 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user