OmniGraph Node omni.graph.nodes.GetLocationAtDistanceOnCurve¶
omni.graph.nodes.GetLocationAtDistanceOnCurve Properties¶
Name |
Value |
---|---|
Version |
1 |
Extension |
omni.graph.nodes |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
hidden |
true |
uiName |
Get Locations At Distances On Curve |
__tokens |
[“x”, “y”, “z”, “X”, “Y”, “Z”] |
__categories |
internal |
Generated Class Name |
OgnGetLocationAtDistanceOnCurveDatabase |
Python Module |
omni.graph.nodes |
omni.graph.nodes.GetLocationAtDistanceOnCurve Description¶
Given a set of curve points and a normalized distance between 0-1.0, return the location on a closed curve. 0 is the first point on the curve, 1.0 is also the first point because the is an implicit segment connecting the first and last points. Values outside the range 0-1.0 will be wrapped to that range, for example -0.4 is equivalent to 0.6 and 1.3 is equivalent to 0.3 This is a simplistic curve-following node, intended for curves in a plane, for prototyping purposes.
omni.graph.nodes.GetLocationAtDistanceOnCurve Inputs¶
Name |
Type |
Default |
Required? |
Descripton |
---|---|---|---|---|
inputs:curve |
pointd[3][] |
[] |
Y |
The curve to be examined |
uiName |
Curve |
|||
inputs:distance |
double[] |
[] |
Y |
The distances along the curve, wrapped to the range 0-1.0 |
uiName |
Distances |
|||
inputs:forwardAxis |
token |
X |
Y |
The direction vector from which the returned rotation is relative, one of X, Y, Z |
uiName |
Forward |
|||
__default |
“X” |
|||
inputs:upAxis |
token |
Y |
Y |
The world Up vector, the curve should be in a plane perpendicular with this - one of X, Y, Z |
uiName |
Up |
|||
__default |
“Y” |
omni.graph.nodes.GetLocationAtDistanceOnCurve Outputs¶
Name |
Type |
Default |
Required? |
Descripton |
---|---|---|---|---|
outputs:location |
pointd[3][] |
None |
Y |
Locations |
uiName |
Locations on curve at the given distances in world space |
|||
outputs:orientation |
quatf[4][] |
None |
Y |
Orientations |
uiName |
World space orientations of the curve at the given distances, may not be smooth for some curves |
|||
outputs:rotateXYZ |
vectord[3][] |
None |
Y |
Rotations |
uiName |
World space rotations of the curve at the given distances, may not be smooth for some curves |