Outline progress and getting stuck
This commit is contained in:
parent
c0a7fb4552
commit
12f97a9171
4 changed files with 207 additions and 50 deletions
|
@ -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'
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue