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 enable omni.graph.nodes in the Extension Manager.
Inputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Source Starts In Target (inputs:sourceStartsInTarget) |
|
List of index values encoding the increments for the output array values. |
[] |
Outputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Source Indices (outputs:sourceIndices) |
|
Decoded list of index values as described by the node algorithm. |
[] |
Metadata
Name |
Value |
---|---|
Unique ID |
omni.graph.nodes.SourceIndices |
Version |
1 |
Extension |
omni.graph.nodes |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
Extract Source Index Array |
Categories |
math:operator |
Generated Class Name |
OgnSourceIndicesDatabase |
Python Module |
omni.graph.nodes |