Outline progress and getting stuck

This commit is contained in:
Bán Dénes 2020-06-03 22:16:45 +02:00
parent c0a7fb4552
commit 12f97a9171
4 changed files with 207 additions and 50 deletions

View file

@ -1,11 +1,11 @@
const m = require('makerjs')
const fs = require('fs-extra')
exports.deepcopy = (value) => JSON.parse(JSON.stringify(value))
const deepcopy = exports.deepcopy = (value) => JSON.parse(JSON.stringify(value))
exports.dump_model = (model, file='model', json=false) => {
const assembly = m.model.originate({
models: model,
models: deepcopy(model),
units: 'mm'
})