Example Node: Smooth Points
Smooths data in a very simple way by averaging values with neighbors.
Installation
To use this node enable omni.graph.examples.cpp in the Extension Manager.
Inputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Iterations (inputs:iterations) |
|
Number of times to average neighboring values |
5 |
Mesh (inputs:mesh) |
|
Bundle containing data to be smoothed and neighbor arrays. |
None |
Name Of Attribute To Smooth (inputs:nameOfAttributeToSmooth) |
|
Name of the attribute in ‘mesh’ containing the data to be smoothed |
points |
Name Of Neighbor Starts Input Attribute (inputs:nameOfNeighborStartsInputAttribute) |
|
Name of the ‘int[]’ attribute in ‘mesh’ containing the beginning index of neighbors of each point in the array attribute specified by ‘nameOfNeighborsInputAttribute’ |
neighborStarts |
Name Of Neighbors Input Attribute (inputs:nameOfNeighborsInputAttribute) |
|
Name of the ‘int[]’ attribute in ‘mesh’ containing the neighbors of all points. The beginnings of each point’s neighbors within this array are provided in the attribute specified by ‘nameOfNeighborStartsInputAttribute’. |
neighbors |
Use GPU (inputs:useGPU) |
|
When this option is on, the node will use the GPU to perform the smoothing computation. |
True |
Outputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Mesh (outputs:mesh) |
|
A copy of ‘mesh’ with the specified attribute smoothed. |
None |
Metadata
Name |
Value |
---|---|
Unique ID |
omni.graph.examples.cpp.Smooth |
Version |
1 |
Extension |
omni.graph.examples.cpp |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
Example Node: Smooth Points |
Generated Class Name |
OgnExampleSmoothDatabase |
Python Module |
omni.graph.examples.cpp |