Nodebundle for playing with nodes

 From:  James (JFH)
7777.203 In reply to 7777.200 
Hello Karsten,

One small request: Planar node
It need only have a single input & single output
with no options. I can test for you & upload new mod files

Have a great weekend
-James

 

something like this:

 

// Planar
function Planar()
{
this.addInput("In","objectlist");
this.addOutput("Out","objectlist");
}

Planar.title = "Planar";
Planar.desc = "Planar";

Planar.prototype.onExecute = function()
{
var inObj = this.getInputData(0, moi.geometryDatabase.createObjectList());
var output = moi.geometryDatabase.createObjectList();
if ( inObj.length> 1 ) output = factory ('planarsrf', inObj);
this.setOutputData(0, output);
}

LiteGraph.registerNodeType("Construct2/Planar", Planar);

EDITED: 25 Nov 2016 by JFH