jfjoch_process: Add orientation-only refinement

This commit is contained in:
2026-05-28 16:02:52 +02:00
parent c22b566503
commit 058468a0b3
4 changed files with 31 additions and 17 deletions
@@ -825,9 +825,9 @@ bool XtalOptimizerRotationOnly(XtalOptimizerData &data,
ceres::AngleAxisToRotationMatrix(rot_aa, R_raw); // row-major 3x3
Eigen::Matrix3d R;
R << R_raw[0], R_raw[1], R_raw[2],
R_raw[3], R_raw[4], R_raw[5],
R_raw[6], R_raw[7], R_raw[8];
R << R_raw[0], R_raw[3], R_raw[6],
R_raw[1], R_raw[4], R_raw[7],
R_raw[2], R_raw[5], R_raw[8];
const Eigen::Vector3d A(a0.x, a0.y, a0.z);
const Eigen::Vector3d B(b0.x, b0.y, b0.z);