Each Zero
Outputs a boolean, or array of booleans, indicating which input values are zero within a specified tolerance.
Installation
To use this node enable omni.graph.nodes in the Extension Manager.
Inputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Tolerance (inputs:tolerance) |
|
How close the value must be to 0 to be considered “zero”. |
0.0 |
Value (inputs:value) |
|
Value(s) to check for zero. |
None |
Outputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Result (outputs:result) |
|
If ‘value’ is a scalar then ‘result’ will be a boolean set to true if ‘value’ is zero. If ‘value’ is non-scalar (array, tuple, matrix, etc) then ‘result’ will be an array of booleans, one for each element/component of the input. If those elements are themselves non-scalar (e.g. an array of vectors) they will be considered zero only if all of the sub-elements are zero. For example, if ‘value’ is [3, 0, 1] then ‘result’ will be [true, false, true] because the second element is zero. But if ‘value’ is [[3, 0, 1], [-5, 4, 17]] then ‘result’ will be [false, false] because neither of the two vectors is fully zero. |
None |
Metadata
Name |
Value |
---|---|
Unique ID |
omni.graph.nodes.EachZero |
Version |
1 |
Extension |
omni.graph.nodes |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
Each Zero |
Categories |
math:condition |
Generated Class Name |
OgnEachZeroDatabase |
Python Module |
omni.graph.nodes |