The SampleSpatialVariablePartialDerivative node samples a numerical spatial variable and returns the partial derivatives of the variable in the x, y, and z directions according to an orientation. In essence, it computes the numerical gradient of the sampled spatial variable.
Inputs
Point (float3)
The point at which to sample the spatial variable. This point is in global space.
Orientation (floatQ)
The orientation that the partial derivatives will be calculated in. This essentially defines the coordinate space of the calculation.
Name (string)
The name of the spatial variable to sample.
Mode (ValueSpatialVariableMode)
If multiple spatial variables of the same name and type exist at the sampled point, this input will determine how the value of the spatial variable will be calculated.
BaseValue (Generic)
If a spatial variable does not exist at the point or at any of the partial derivative calculation points, this value will be substituted instead.
SamplingDistance (float)
The length of sample that the partial derivative calculation will use. The calculation will sample the spatial variable at a distance of SamplingDistance / 2
in each direction for each axis.
Outputs
X (Generic)
The partial derivative in the X direction.
Y (Generic)
The partial derivative in the Y direction.
Z (Generic)
The partial derivative in the Z direction.