Skip to content

Instantly share code, notes, and snippets.

@yertto
yertto / nut.js
Created January 27, 2020 02:50
Constraining the range of one metaParameter based on another
var makerjs = require('makerjs');
function nut(nutSize, holeSize) {
this.nutSize = nutSize;
this.models = { nut: new makerjs.models.Polygon(6, this.nutSize) };
this.paths = { hole: new makerjs.paths.Circle(holeSize) };
}
function maxHoleSize(_this) {