Michael,
I wonder if you may steer my right with small scripting issue I'm having.
In reference to parameter settings for the extrude factory outlined here:
http://moi3d.com/forum/lmessages.php?webtag=MOI&msg=9919.6
I am attempting to modify a node (contributed by Wayne) to remove Cap Ends from output
of tapered extrude by setting the parameter to false, but it has no effect.
Can you please tell me if the geometry kernel disregards this parameter if tapering is engaged,
or if my syntax is wrong.
FYI Please find code below.
Thanks
James
https://www.instagram.com/nodeology/
code:
function ExtrudeTapered() {
this.addInput("Profile", "objectlist");
this.addInput("Dist", "numarray");
this.addInput("DraftAngle", "numarray");
this.addOutput("Out", "objectlist");
this.properties = {
draftflip: ["Off", "Off", "On"]
};
}
ExtrudeTapered.title = "ExtrudeTaper";
ExtrudeTapered.desc = "ExtrudeTaper";
ExtrudeTapered.prototype.onExecute = function () {
var data = this.processInOut("Long", this.multiProcess, null, this.properties.distance, this.properties.draftangle);
this.properties.path = data.inputs[1];
this.setOutputData(0, data.outputs[0]);
}
ExtrudeTapered.prototype.multiProcess = function (objects, distance, draftangle) {
return [factory('extrude', objects, null, distance, null, null, false, null, null, null, null, draftangle, this.properties.draftflip[0] === "On", null)];
}
LiteGraph.registerNodeType("Extrude2/ExtrudeTapered", ExtrudeTapered);