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);