Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
wedge.paths.innerFillet = innerFilletArc;
} else {
wedge.paths.innerFillet1 = makerjs.path.fillet(wedge.paths.ShapeLine1, wedge.paths.Ring_inner, innerFillet);
wedge.paths.innerFillet2 = makerjs.path.fillet(wedge.paths.ShapeLine5, wedge.paths.Ring_inner, innerFillet);
}
}
if (outerFillet) {
wedge.paths.outerFillet1 = makerjs.path.fillet(wedge.paths.ShapeLine1, wedge.paths.Ring_outer, outerFillet);
wedge.paths.outerFillet2 = makerjs.path.fillet(wedge.paths.ShapeLine5, wedge.paths.Ring_outer, outerFillet);
}
this.models = {};
for (var i = 0; i < count; i++) {
var iwedge = makerjs.cloneObject(wedge);
this.models['wedge' + i] = makerjs.model.rotate(iwedge, i * a, [0, 0]);
}
if (addRing) {
var ringWidth = (spokeWidth + flareWidth) / 2;
this.models.ring2 = new makerjs.models.Ring(outerRadius + ringWidth, innerRadius - ringWidth);
}
}
wedge.paths.innerFillet = innerFilletArc;
} else {
wedge.paths.innerFillet1 = makerjs.path.fillet(wedge.paths.ShapeLine2, wedge.paths.Ring_inner, innerFillet);
wedge.paths.innerFillet2 = makerjs.path.fillet(wedge.paths.ShapeLine4, wedge.paths.Ring_inner, innerFillet);
}
}
if (outerFillet) {
wedge.paths.outerFillet1 = makerjs.path.fillet(wedge.paths.ShapeLine2, wedge.paths.Ring_outer, outerFillet);
wedge.paths.outerFillet2 = makerjs.path.fillet(wedge.paths.ShapeLine4, wedge.paths.Ring_outer, outerFillet);
}
this.models = {};
for (var i = 0; i < count; i++) {
var iwedge = makerjs.cloneObject(wedge);
this.models['wedge' + i] = makerjs.model.rotate(iwedge, i * a, [0, 0]);
}
if (addRing) {
this.models.ring2 = new makerjs.models.Ring(outerRadius + spokeWidth, innerRadius - spokeWidth);
}
}