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

Method compute_vertex_connectivity

tools/MeshUtils/MeshSeparator.cpp:50–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void MeshSeparator::compute_vertex_connectivity() {
51 m_vertex_connectivity.clear();
52 const size_t num_elements = m_elements.rows();
53 const size_t vertex_per_element = m_elements.cols();
54 for (size_t i=0; i<num_elements; i++) {
55 for (size_t j=0; j<vertex_per_element; j++) {
56 m_vertex_connectivity.insert({m_elements(i, j)}, i);
57 }
58 }
59}
60
61void MeshSeparator::compute_face_connectivity() {
62 m_face_connectivity.clear();

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected