Points practically done
This commit is contained in:
parent
f9460f6c45
commit
cdb081a377
6 changed files with 301 additions and 259 deletions
20
helpers/outline.js
Normal file
20
helpers/outline.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue