mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 11:33:49 +01:00
use destructure in add brim
This commit is contained in:
parent
eaf1af1412
commit
9711b9631d
@ -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