Back to Three Js

LoopNode

docs/pages/LoopNode.html

latest806 B
Original Source

Constructor

new LoopNode( params : Array.<any> )

Constructs a new loop node.

| params |

Depending on the loop type, array holds different parameterization values for the loop.

|

Methods

.getProperties( builder : NodeBuilder ) : Object

Returns properties about this node.

| builder |

The current node builder.

|

Returns: The node properties.

.getVarName( index : number ) : string

Returns a loop variable name based on an index. The pattern is 0 = i, 1= j, 2= k and so on.

| index |

The index.

|

Returns: The loop variable name.

Source

src/nodes/utils/LoopNode.js