This element creates a surface defined by a mathematical formula (z=f(x,y)).
See Attributes Common to All Elements.
Name | Value Type | Default Value | Description | Comment | V. | Exp. |
---|---|---|---|---|---|---|
formula |
Empty. |
Mathematical formula for the curve. |
The formula can reference any parameter, curve or surface available in the skin. |
1.6 |
No | |
x_variable |
string |
x |
name of the "x" variable in the formula. |
You can customize the name of the traditional "x" variable in z=f(x,y) formula so that it becomes z=f(variable,y) |
1.6 |
No |
y_variable |
string |
y |
name of the "y" variable in the formula. |
You can customize the name of the traditional "y" variable in z=f(x,y) formula so that it becomes z=f(x,variable) |
1.6 |
No |
Events | ||||||
value_changed |
the event is triggered anytime the value of the object has changed. |
2.0 |
The code below creates a surface ("surf") that can be displayed on a 3D graph. The name of the x variable used in the formula is customized ("a").
<FORMULA_CURVE id="surf" formula="cos(a*y)" x_variable="a"/>