Working with IDs and Indices

 
 
 

There are some things you should know when working with point IDs and indices. The first and most important thing is that IDs and indices are not the same.

Getting Point IDs

The Get Point ID compound uses a First Valid node to return the point ID attribute if it exists. Otherwise, it returns the point indices. It can be useful in situations where IDs may or may not exist (static point clouds for example, or polygon meshes and other geometry types).

Getting Element Indices

The Get Element Index node (in the Data Access category) returns the indices for components. The type of component (point, edge, polygon, etc.) is determined by how the context is resolved by other connected nodes. If necessary, you can force a particular component context by plugging an attribute into its Value port.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License