Axis1d

ABSTRACT

Generates a one-dimensional axis mesh with ticks, labels, and units along the X-axis on a specified plane.

PARAMETERS
centerA 3-vector indicating the center coordinates of the axis
centerA 3-vector indicating the center coordinates of the axis
pos_x_axisA 3-vector indicating the direction of positive X-axis
normalA 3-vector representing the normal direction of the plane
x_unitUnit for the X-axis. That is, one unit in world space should correspond to how many units in the axis?
x_radRadius of the X-axis, which basically says that x_max should be +x_rad and x_min should be -x_rad
x_unitUnit for the X-axis. That is, one unit in world space should correspond to how many units in the axis?
x_minMinimum value for the X-axis. Should be <= 0
x_maxMaximum value for the X-axis. Should be >= 0
x_unitUnit for the X-axis. That is, one unit in world space should correspond to how many units in the axis?
x_minMinimum value for the X-axis. Should be <= 0
x_maxMaximum value for the X-axis. Should be >= 0
x_tick_stepStep size for ticks on the X-axis (measured in axis coordinates)
x_labelA textual label for the X-axis. Displayed right next to the end of the positive X-axis
x_labelA textual label for the X-axis. Displayed right next to the end of the positive X-axis
x_label_rateRate 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
tagA vector of numbers used as the axis's tag
colorA 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)