mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 19:43:48 +01:00
use destructure in add brim
This commit is contained in:
parent
c8f97389ce
commit
0d1a9881db
@ -11,7 +11,8 @@ const offsetOptions = {
|
|||||||
export default function addBrim(slices, settings) {
|
export default function addBrim(slices, settings) {
|
||||||
console.log('add brim');
|
console.log('add brim');
|
||||||
|
|
||||||
const brimOffset = settings.config['brimOffset'] / PRECISION;
|
let { brimOffset } = settings.config;
|
||||||
|
brimOffset /= PRECISION;
|
||||||
|
|
||||||
const fistLayer = slices[0];
|
const fistLayer = slices[0];
|
||||||
fistLayer.brim = fistLayer.getOutline().offset(brimOffset, offsetOptions);
|
fistLayer.brim = fistLayer.getOutline().offset(brimOffset, offsetOptions);
|
||||||
|
Loading…
Reference in New Issue
Block a user