Skip to main content

base_axes_3d

Function base_axes_3d 

Source
pub fn base_axes_3d(
    origin: [f64; 3],
    axis1: Option<[f64; 3]>,
    axis2: Option<[f64; 3]>,
    axis3: Option<[f64; 3]>,
) -> Option<Transform>
Expand description

The 3D case of IfcBaseAxis.

Axis3 is the frame’s Z and Axis1 its approximate X, which is the reverse naming of a placement’s Axis/RefDirection but the identical construction, so the Gram-Schmidt projection is delegated to Transform::from_axes rather than repeated.

Returns None when the axes are degenerate: zero-length, or Axis1 parallel to Axis3 so that no X survives the projection.