FORMULA_SURFACE
This element creates a surface defined by a mathematical formula (z=f(x,y)).
Attributes brief detailed show all inherited
Name | Description | Default | |||
---|---|---|---|---|---|
formula | Mathematical formula for the curve | empty | |||
x_variable | name of the "x" variable in the formula | x | |||
y_variable | name of the "y" variable in the formula | y | |||
Events | |||||
value_changed | the event is triggered anytime the value of the object has changed |
See Attributes Common to All Elements.
Specific Attributes
Examples
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"/>