Extrude Taper No Caps

Next
 From:  James (JFH)
10665.1 
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);
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
10665.2 In reply to 10665.1 
Hi James, yes it's that the geometry kernel had no option for turning off end caps for tapered extrude. So the end caps parameter is ignored.

In the regular extrude command UI the checkbox option for "Cap ends" is hidden if you do a tapered extrude.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All