|
|
Sets a callback method that will be called each time the function must be evaluated.
- Parameters:
-
| fptrPythonEvaluationCallback | the python method that will be called each time the function must be evaluated. |
- Callback description:
- The Python callback should accept 7 floats as arguments, and return a float in the range of 0 through 1. Values outside this range will be clamped. The callback should look like this:
float fptrPythonEvaluationCallback(float fCurrentValue, float x_position, float y_position, float z_position, float x_normal, float y_normal, float z_normal);
where:
fCurrentValue is the current value as computed by the function. This value can used by the callback to generate the final value.
x_position is the x coordinate of the evaluation point.
y_position is the y coordinate of the evaluation point.
z_position is the z coordinate of the evaluation point.
x_normal is the x coordinate of the normal vector at the evaluation point. The normal vector is normalized.
y_normal is the y coordinate of the normal vector at the evaluation point. The normal vector is normalized.
z_normal is the z coordinate of the normal vector at the evaluation point. The normal vector is normalized.
- Remarks:
- To remove the callback, simply call this method with no parameter.
- Returns:
- True if the callback was succesfully set (or removed), false otherwise.
|