pub struct CenterCircle {
pub center: [f64; 3],
pub axis: [f64; 3],
pub radius: f64,
pub depth: f64,
pub x_dir: [f64; 3],
}Expand description
One centre mark: the circle it marks. axis is the circle’s normal, or
zero for a sphere (its mark lies in the model’s XY plane, or in a picked
annotation plane). A cylinder or cone face is marked at the end its axis
points to, depth the face’s length back along the axis to its other
end: the layout draws the mark on whichever end faces the viewer (zero
for an edge’s or a sphere’s mark).
x_dir fixes the cross in the model: one arm runs along it, the other
along axis × x_dir. It is a unit vector in the circle’s plane (for a
sphere, the direction the layout projects into the mark’s plane), taken
from the annotation’s orientation reference or, without one, the model X
axis (Y where X is along the circle’s axis). Zero (a row resolved before
the field existed) applies the same default in the layout; the camera
never turns the cross.
Fields§
§center: [f64; 3]§axis: [f64; 3]§radius: f64§depth: f64§x_dir: [f64; 3]