Skip to main content

transform_to_pose_params

Function transform_to_pose_params 

Source
pub fn transform_to_pose_params(transform: &AffineTransform) -> Value
Expand description

The generic inputParams.transform pose write-back JSON: {translate, rotateEulerDeg} with degrees in the intrinsic XYZ order (R = Rx·Ry·Rzfeatures::common::compose_trs_matrix). This is the write-side half of the ACOMP feature’s reader contract (assembly_component.rs reads exactly transform.translate + transform.rotateEulerDeg; a mismatched key would silently zero the pose on the next history run).

pub (re-exported as brep_kernel::transform_to_pose_params) because it is the ONE matrix → intrinsic-XYZ-Euler-degrees decomposition in the tree — the solver write-back and the out-of-crate seams that author ACOMP poses share it rather than re-deriving the convention (and its gimbal-lock branch), which the readers on the other side (assembly_component.rs, transform_bake) would then silently disagree with.