OmniGraph Node omni.graph.examples.cpp.Smooth¶
omni.graph.examples.cpp.Smooth Properties¶
Name |
Value |
---|---|
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 |
omni.graph.examples.cpp.Smooth Description¶
Smooths data in a very simple way by averaging values with neighbors.
omni.graph.examples.cpp.Smooth Inputs¶
Name |
Type |
Default |
Required? |
Descripton |
---|---|---|---|---|
inputs:iterations |
int |
5 |
Y |
Number of times to average neighboring values |
__default |
5 |
|||
inputs:mesh |
bundle |
None |
Y |
Bundle containing data to be smoothed and neighbor arrays. |
inputs:nameOfAttributeToSmooth |
token |
points |
Y |
Name of the attribute in ‘mesh’ containing the data to be smoothed |
__default |
“points” |
|||
inputs:nameOfNeighborStartsInputAttribute |
token |
neighborStarts |
Y |
Name of the ‘int[]’ attribute in ‘mesh’ containing the beginning index of neighbors of each point in the array attribute specified by ‘nameOfNeighborsInputAttribute’ |
__default |
“neighborStarts” |
|||
inputs:nameOfNeighborsInputAttribute |
token |
neighbors |
Y |
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’. |
__default |
“neighbors” |
|||
inputs:useGPU |
bool |
True |
Y |
When this option is on, the node will use the GPU to perform the smoothing computation. |
__default |
true |
omni.graph.examples.cpp.Smooth Outputs¶
Name |
Type |
Default |
Required? |
Descripton |
---|---|---|---|---|
outputs:mesh |
bundle |
None |
Y |
A copy of ‘mesh’ with the specified attribute smoothed. |