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

Function dilate

tools/Wires/Inflator/PhantomMeshGenerator.cpp:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 }
52
53 void dilate(const MatrixIr& edges, std::vector<bool>& indicator) {
54 const size_t num_edges = edges.rows();
55 std::vector<bool> ref = indicator;
56 for (size_t i=0; i<num_edges; i++) {
57 const VectorI& e = edges.row(i);
58 if (ref[e[0]] || ref[e[1]]) {
59 indicator[e[0]] = true;
60 indicator[e[1]] = true;
61 }
62 }
63 }
64}
65using namespace PhantomMeshGeneratorHelper;
66

Callers 1

trim_irrelavent_edgesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected