Browse Source

refactor: change vertex_infos parameter from Eigen::Ref to Eigen::MatrixXd& in filter_tet_by_subface.

error info Eigen::Ref<Eigen::MatrixXd> can't reshape
test-three-planes-intersection
mckay 1 month ago
parent
commit
3711e7dc0b
  1. 2
      network_process/include/prim_gen.hpp
  2. 2
      network_process/src/prim_gen/filter_tet_by_subface.cpp

2
network_process/include/prim_gen.hpp

@ -19,7 +19,7 @@ void build_tetrahedron_and_adjacency(const scene_bg_mesh_info
flat_hash_map_mp<uint32_t, stl_vector_mp<uint32_t>>& reverse_vertex_adjacency,
btree_map_mp<uint32_t, stl_vector_mp<uint32_t>>& vertex_to_tet_mapping);
void filter_tet_by_subface(const btree_map_mp<uint32_t, stl_vector_mp<uint32_t>>& vertex_to_tet_mapping,
Eigen::Ref<Eigen::MatrixXd> vertex_infos,
Eigen::MatrixXd& vertex_infos,
flat_hash_map_mp<uint32_t, uint32_t>& vertex_indices_mapping,
stl_vector_mp<std::array<uint32_t, 4>>& tetrahedrons,
flat_hash_map_mp<uint32_t, uint32_t>& vertex_lexigraphical_adjacency,

2
network_process/src/prim_gen/filter_tet_by_subface.cpp

@ -16,7 +16,7 @@
// };
void filter_tet_by_subface(const btree_map_mp<uint32_t, stl_vector_mp<uint32_t>>& vertex_to_tet_mapping,
Eigen::Ref<Eigen::MatrixXd> vertex_infos,
Eigen::MatrixXd& vertex_infos,
flat_hash_map_mp<uint32_t, uint32_t>& vertex_indices_mapping,
stl_vector_mp<std::array<uint32_t, 4>>& tetrahedrons,
flat_hash_map_mp<uint32_t, uint32_t>& vertex_lexigraphical_adjacency,

Loading…
Cancel
Save