mirror of
https://github.com/TECHNOFAB11/ergogen.git
synced 2025-12-12 08:00:06 +01:00
20 lines
381 B
JavaScript
20 lines
381 B
JavaScript
|
|
const m = require('makerjs')
|
||
|
|
const fs = require('fs-extra')
|
||
|
|
|
||
|
|
const outline = (points, radius, expansion=5, patches=[]) => {
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
exports.draw = (points, config) => {
|
||
|
|
const lefts = {}
|
||
|
|
const rights = {}
|
||
|
|
for (const [k, p] of Object.entries(points)) {
|
||
|
|
if (p.meta.mirrored) {
|
||
|
|
rights[k] = p
|
||
|
|
} else {
|
||
|
|
lefts[k] = p
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|