Axis1d
ABSTRACT
Generates a one-dimensional axis mesh with ticks, labels, and units along the X-axis on a specified plane.
PARAMETERS
center | A 3-vector indicating the center coordinates of the axis |
center | A 3-vector indicating the center coordinates of the axis |
pos_x_axis | A 3-vector indicating the direction of positive X-axis |
normal | A 3-vector representing the normal direction of the plane |
x_unit | Unit for the X-axis. That is, one unit in world space should correspond to how many units in the axis? |
x_rad | Radius of the X-axis, which basically says that x_max should be +x_rad and x_min should be -x_rad |
x_unit | Unit for the X-axis. That is, one unit in world space should correspond to how many units in the axis? |
x_min | Minimum value for the X-axis. Should be <= 0 |
x_max | Maximum value for the X-axis. Should be >= 0 |
x_unit | Unit for the X-axis. That is, one unit in world space should correspond to how many units in the axis? |
x_min | Minimum value for the X-axis. Should be <= 0 |
x_max | Maximum value for the X-axis. Should be >= 0 |
x_tick_step | Step size for ticks on the X-axis (measured in axis coordinates) |
x_label | A textual label for the X-axis. Displayed right next to the end of the positive X-axis |
x_label | A textual label for the X-axis. Displayed right next to the end of the positive X-axis |
x_label_rate | Rate for displaying X-axis labels. In particular, a numeric label will be assigned every x_label_rate ticks. Note you can turn these off entirely by setting a value of 0 |
tag | A vector of numbers used as the axis's tag |
color | A 4-vector representing the color for rendering the axis |
RETURN
A mesh-tree according to the above specifications
DECLARATION
func Axis1d([plane] {[main] {center}, [normal] {center, pos_x_axis, normal}}, [x] {[main] {x_unit, x_rad}, [interval] {x_unit, x_min, x_max}, [step] {x_unit, x_min, x_max, x_tick_step}}, [x_labels] {[auto] {x_label}, [step] {x_label, x_label_rate}}, tag, color)