Extract Source Index Array

Takes an input array of index values in ‘sourceStartsInTarget’ encoded as the list of index values at which the output array value will be incremented, starting at the second entry, and with the last entry into the array being the desired sized of the output array ‘sourceIndices’. For example the input [1,2,3,5,6,6] would generate an output array of size 5 (last index) consisting of the values [0,0,2,3,3,3]: - the first two 0s to fill the output array up to index input[1]=2 - the first two 0s to fill the output array up to index input[1]=2 - the 2 to fill the output array up to index input[2]=3 - the three 3s to fill the output array up to index input[3]=6

Installation

To use this Node, you must enable omni.graph.nodes in the Extension Manager.

Inputs

Name

Type

Description

Default

sourceStartsInTarget

int[]

List of index values encoding the increments for the output array values

[]

Outputs

Name

Type

Description

Default

sourceIndices

int[]

Decoded list of index values as described by the node algorithm

[]