Module: bsProcessingNode
A processing node to be used with bsProcessingGraph. Processing nodes are connected by node links. Nodes have input- and output-pins where other nodes could be connected. These node-pins are providing or receiving layer models (bsModel) where the name of the pin is equal to the model name. The node itself owns a calculate function which transforms the input model(s) into the output model(s).
Creates a new processing node.
New node.
Sets the node’s calculation function which transforms the input model(s) into the output model(s). The processing node does not have any default implementation. So if no function is set then the node is unusable and the parent processing graph is invalid.
The calculate function is expected to have the following format:
void func(modelData, hatchResult, nLayerNr, inputModels, outputModels);
Links: void func(modelData, hatchResult, nLayerNr, inputModels, outputModels)
Get the node name.
Name of the node.
The node’s calculation function is a custom function which transforms the input model(s) into the output model(s). It can be implemented anywhere outside the node and it is set by setCalculateFunc(). This function is not available as a method of the processing node. E.g. you cannot call it from the script as myNode.func().
modelData : bsModelData, The original layer model where the processing graph is executed on.
hatchResult : bsHatch which can be used to add hatch-data to the final graph execution result.
nLayerNr : The number of the current layer where the function should work on.
inputModels : bsModelData containing the input layer models of the node.
outputModels : bsModelData containing the output layer models of the node.