How to use the makerjs.chain 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 microsoft / maker.js / demos / js / exoPanel.js View on Github external
.moveRelative([0, height])
    .$reset()
    .clone()
    .rotate(180)
    .addTo(this, 'dome4')
    .moveRelative([width, height])
    ;

  var outer = new makerjs.models.Rectangle(width, height);

  makerjs.model.combineUnion(this, outer);

  this.models.outer = outer;

  var c = makerjs.model.findSingleChain(this);
  var fillets = makerjs.chain.fillet(c, fillet);
  this.models.fillets = fillets;

  this.models.bolts = new makerjs.models.BoltRectangle(width, height, holeRadius);
}
github microsoft / maker.js / demos / js / window-arch.js View on Github external
chains.forEach(function (chain, i) {
        var fillets = makerjs.chain.fillet(chain, fillet);
        if (!fillets) return;
        frame.models["fillets" + i] = fillets;
    });
}

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