OmniGraph Node omni.graph.nodes.SourceIndices

omni.graph.nodes.SourceIndices Properties

Name

Value

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

omni.graph.nodes.SourceIndices Description

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

omni.graph.nodes.SourceIndices Inputs

Name

Type

Default

Required?

Descripton

inputs:sourceStartsInTarget

int[]

[]

Y

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

__default

[]

omni.graph.nodes.SourceIndices Outputs

Name

Type

Default

Required?

Descripton

outputs:sourceIndices

int[]

[]

Y

Decoded list of index values as described by the node algorithm

__default

[]