How to use the makerjs.travel function in makerjs

To help you get started, weā€™ve selected a few makerjs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mrzealot / absolem / plans / absolem.js View on Github external
const for_each_hole = (model, callback) => {
    for (const key of ['outer', 'home', 'inner']) {
        const route = ['models', 'thumbfan', 'models', key]
        callback(m.travel(model, route).result)
    }

    for (const {name} of columns.slice().reverse()) {
        for (const key of ['bottom', 'middle', 'top']) {
            const route = ['models', 'matrix', 'models', name, 'models', key]
            callback(m.travel(model, route).result)
        }
    }
}
github mrzealot / absolem / plans / absolem.js View on Github external
const get_hole = (model, [col, key]) => {
    let route
    if (col == 'thumb') {
        route = ['models', 'thumbfan', 'models', key,]
    } else {
        route = ['models', 'matrix', 'models', col, 'models', key]
    }
    return deepcopy(m.travel(model, route).result)
}

makerjs

Maker.js, a Microsoft Garage project, is a JavaScript library for creating and sharing modular line drawings for CNC and laser cutters.

Apache-2.0
Latest version published 1 year ago

Package Health Score

70 / 100
Full package analysis