Fillet all outline chains, closes #34

This commit is contained in:
Bán Dénes 2021-12-12 15:55:58 +01:00
parent 8490f14960
commit 16f6b81f66
3 changed files with 283 additions and 1 deletions

View file

@ -319,7 +319,9 @@ exports.parse = (config = {}, points = {}, units = {}) => {
const fillet = a.sane(part.fillet || 0, `${name}.fillet`, 'number')(units)
arg = u.deepcopy(outlines[part.name])
if (fillet) {
arg.models.fillets = m.chain.fillet(m.model.findSingleChain(arg), fillet)
for (const [index, chain] of m.model.findChains(arg).entries()) {
arg.models[`fillet_${index}`] = m.chain.fillet(chain, fillet)
}
}
break
default: