MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / trace_vertex_chains

Function trace_vertex_chains

tools/MeshUtils/EdgeUtils.cpp:68–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 }
67
68 void trace_vertex_chains(const IndexHash& valance, IndexHash& next,
69 std::vector<VectorI>& chains) {
70 for (auto target_valance : {1, 2}) {
71 for (auto item : valance) {
72 if (next.find(item.first) == next.end()) continue;
73 if (item.second == target_valance) {
74 chains.push_back(trace(next, item.first));
75 }
76 }
77 }
78 }
79
80 void assert_simple_edge_chains(
81 const std::unordered_map<size_t, size_t>& valance) {

Callers 1

chain_edgesMethod · 0.85

Calls 3

traceFunction · 0.85
findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected