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

Method remove_duplicated_edges

tools/Wires/Tiler/TilerEngine.cpp:181–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181void TilerEngine::remove_duplicated_edges(WireNetwork& wire_network) {
182 const MatrixIr& edges = wire_network.get_edges();
183 std::vector<bool> mask = create_duplication_mask(edges);
184
185 MatrixIr updated_edges = filter(edges, mask);
186 wire_network.set_edges(updated_edges);
187
188 std::vector<std::string> attr_names = wire_network.get_attribute_names();
189 for (auto itr : attr_names) {
190 const std::string& name = itr;
191 if (!wire_network.is_vertex_attribute(name)) {
192 MatrixFr values = wire_network.get_attribute(name);
193 MatrixFr updated_values = filter(values, mask);
194 wire_network.set_attribute(name, updated_values);
195 }
196 }
197}
198

Callers

nothing calls this directly

Calls 8

create_duplication_maskFunction · 0.85
set_edgesMethod · 0.80
filterFunction · 0.70
get_edgesMethod · 0.45
get_attribute_namesMethod · 0.45
is_vertex_attributeMethod · 0.45
get_attributeMethod · 0.45
set_attributeMethod · 0.45

Tested by

no test coverage detected