output SVG alongside DXF in debug mode
This commit is contained in:
parent
9e2d30f037
commit
f8223aa986
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ exports.dump_model = (model, file='model', debug=false) => {
|
|||
fs.mkdirpSync(path.dirname(`${file}.dxf`))
|
||||
fs.writeFileSync(`${file}.dxf`, m.exporter.toDXF(assembly))
|
||||
if (debug) {
|
||||
fs.writeFileSync(`${file}.svg`, m.exporter.toSVG(assembly))
|
||||
fs.writeJSONSync(`${file}.json`, assembly, {spaces: 4})
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue