From 9343b357d7f0551ace5a4f9b5330a10fece379b4 Mon Sep 17 00:00:00 2001 From: Zhicheng Wang <1627343141@qq.com> Date: Thu, 6 Nov 2025 00:35:25 +0800 Subject: [PATCH] fix known bugs --- network_process/src/prim_gen/extract_mesh.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/network_process/src/prim_gen/extract_mesh.cpp b/network_process/src/prim_gen/extract_mesh.cpp index 3425a51..37bf55f 100644 --- a/network_process/src/prim_gen/extract_mesh.cpp +++ b/network_process/src/prim_gen/extract_mesh.cpp @@ -195,7 +195,7 @@ void extract_iso_mesh(const std::array& tet_active_s const auto& face = faces[face_index]; face_verts.clear(); - for (unsigned long vId : face.vertices) { face_verts.emplace_back(iso_vId_of_vert[vId]); } + for (unsigned long vId : face.vertices) face_verts.emplace_back(iso_vId_of_vert[vId]); const face_header_t face_header{tet_index, face_index}; // face is on tet boundary if face.negative_cell is NONE uint32_t iso_face_index{static_cast(iso_faces.size())}; @@ -216,4 +216,8 @@ void extract_iso_mesh(const std::array& tet_active_s iso_faces[iso_face_index].headers.emplace_back(face_header); } } + + iso_pts.shrink_to_fit(); + iso_verts.shrink_to_fit(); + iso_faces.shrink_to_fit(); } \ No newline at end of file