| 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 | } |
| 65 | using namespace PhantomMeshGeneratorHelper; |
| 66 |
no outgoing calls
no test coverage detected