mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 03:23:48 +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) {
|
||||
let { brim: { offset: brimOffset } } = settings;
|
||||
let {
|
||||
brim: { offset: brimOffset }
|
||||
} = settings;
|
||||
brimOffset /= PRECISION;
|
||||
|
||||
const [firstLayer] = slices;
|
||||
|
@ -1,7 +1,10 @@
|
||||
import * as THREE from 'three';
|
||||
|
||||
export default function calculateLayersIntersections(lines, settings) {
|
||||
const { layerHeight, dimensions: { z: dimensionsZ } } = settings;
|
||||
const {
|
||||
layerHeight,
|
||||
dimensions: { z: dimensionsZ }
|
||||
} = settings;
|
||||
|
||||
const numLayers = Math.floor(dimensionsZ / layerHeight);
|
||||
|
||||
|
@ -9,7 +9,11 @@ const offsetOptions = {
|
||||
|
||||
export default function generateInnerLines(slices, settings) {
|
||||
// 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;
|
||||
shellThickness /= PRECISION;
|
||||
const nozzleRadius = nozzleDiameter / 2;
|
||||
|
Loading…
Reference in New Issue
Block a user