From 3711e7dc0b846fcb4e7c4b0b0f746097b88467a2 Mon Sep 17 00:00:00 2001 From: mckay Date: Sat, 2 Aug 2025 17:54:15 +0800 Subject: [PATCH] refactor: change vertex_infos parameter from Eigen::Ref to Eigen::MatrixXd& in filter_tet_by_subface. error info Eigen::Ref can't reshape --- network_process/include/prim_gen.hpp | 2 +- network_process/src/prim_gen/filter_tet_by_subface.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/network_process/include/prim_gen.hpp b/network_process/include/prim_gen.hpp index 8901fd1..dfc76ed 100644 --- a/network_process/include/prim_gen.hpp +++ b/network_process/include/prim_gen.hpp @@ -19,7 +19,7 @@ void build_tetrahedron_and_adjacency(const scene_bg_mesh_info flat_hash_map_mp>& reverse_vertex_adjacency, btree_map_mp>& vertex_to_tet_mapping); void filter_tet_by_subface(const btree_map_mp>& vertex_to_tet_mapping, - Eigen::Ref vertex_infos, + Eigen::MatrixXd& vertex_infos, flat_hash_map_mp& vertex_indices_mapping, stl_vector_mp>& tetrahedrons, flat_hash_map_mp& vertex_lexigraphical_adjacency, diff --git a/network_process/src/prim_gen/filter_tet_by_subface.cpp b/network_process/src/prim_gen/filter_tet_by_subface.cpp index b03d9cd..991ff51 100644 --- a/network_process/src/prim_gen/filter_tet_by_subface.cpp +++ b/network_process/src/prim_gen/filter_tet_by_subface.cpp @@ -16,7 +16,7 @@ // }; void filter_tet_by_subface(const btree_map_mp>& vertex_to_tet_mapping, - Eigen::Ref vertex_infos, + Eigen::MatrixXd& vertex_infos, flat_hash_map_mp& vertex_indices_mapping, stl_vector_mp>& tetrahedrons, flat_hash_map_mp& vertex_lexigraphical_adjacency,