From ff5dd4f7d9fb79c3b803bce1c42b09bc91c42d7f Mon Sep 17 00:00:00 2001 From: Zhicheng Wang <1627343141@qq.com> Date: Sat, 2 Aug 2025 16:01:08 +0800 Subject: [PATCH] fix index error --- network_process/src/prim_gen/filter_tet_by_subface.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 7f44c3f..b03d9cd 100644 --- a/network_process/src/prim_gen/filter_tet_by_subface.cpp +++ b/network_process/src/prim_gen/filter_tet_by_subface.cpp @@ -32,8 +32,7 @@ void filter_tet_by_subface(const btree_map_mp> sign_count_initialized.resize(tetrahedrons.size()); // the highest 4 bits as positive sign count, the lowest 4 bits as negative sign count - sign_count_buffer_t temp_sign_counts(vertex_infos.rows()); - temp_sign_counts += temp_sign_counts; + sign_count_buffer_t temp_sign_counts(vertex_infos.cols()); for (const auto& [vertex_index, tet_indices] : vertex_to_tet_mapping) { auto vertex_info = vertex_infos.row(vertex_index);