Browse Source

fix: update hasher to use world_to_local matrix instead of local_to_world

test-three-planes-intersection
mckay 1 month ago
parent
commit
ff69eb0a58
  1. 2
      primitive_process/interface/subface/simple/cylinder_face.hpp

2
primitive_process/interface/subface/simple/cylinder_face.hpp

@ -34,7 +34,7 @@ template <>
struct hasher<internal::cylinder_paired_model_matrix> { struct hasher<internal::cylinder_paired_model_matrix> {
size_t operator()(const internal::cylinder_paired_model_matrix &block) const size_t operator()(const internal::cylinder_paired_model_matrix &block) const
{ {
const auto& mat = block.data->local_to_world.matrix(); // 3x4 const auto& mat = block.data->world_to_local.matrix(); // 3x4
Eigen::Matrix3d A = mat.block<3,3>(0,0); Eigen::Matrix3d A = mat.block<3,3>(0,0);
Eigen::Vector3d b = mat.col(3); Eigen::Vector3d b = mat.col(3);

Loading…
Cancel
Save