mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-19 12:27:56 +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) {
|
||||
console.log('add brim');
|
||||
|
||||
const brimOffset = settings.config['brimOffset'] / PRECISION;
|
||||
let { brimOffset } = settings.config;
|
||||
brimOffset /= PRECISION;
|
||||
|
||||
const fistLayer = slices[0];
|
||||
fistLayer.brim = fistLayer.getOutline().offset(brimOffset, offsetOptions);
|
||||
|
Loading…
Reference in New Issue
Block a user