Browse Source

fix chain_index missing

V2-integral
Zhicheng Wang 12 hours ago
parent
commit
69f221684f
  1. 9
      network_process/src/post_topo/filter_chains.cpp

9
network_process/src/post_topo/filter_chains.cpp

@ -1,6 +1,4 @@
#include <post_topo.hpp>
#include "container/wrapper/relation_graph.hpp"
#include "fwd_types.hpp"
void filter_chains(const std::vector<polygon_face_t>& faces,
const std::vector<std::vector<uint32_t>>& patches,
@ -31,9 +29,10 @@ void filter_chains(const std::vector<polygon_face_t>& faces,
if (v1_iter != vertex_old_index_to_unique_index.end() && v2_iter != vertex_old_index_to_unique_index.end()
&& v3_iter != vertex_old_index_to_unique_index.end()) {
chain_triangle_t mapped_tri{};
mapped_tri.v1 = v1_iter->second;
mapped_tri.v2 = v2_iter->second;
mapped_tri.v3 = v3_iter->second;
mapped_tri.chain_index = tri.chain_index;
mapped_tri.v1 = v1_iter->second;
mapped_tri.v2 = v2_iter->second;
mapped_tri.v3 = v3_iter->second;
chain_triangles.emplace_back(mapped_tri);
}
} else {

Loading…
Cancel
Save