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

Method get_vertex_neighbors

tools/Wires/WireNetwork/WireConnectivity.cpp:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45VectorI WireConnectivity::get_vertex_neighbors(size_t i) const {
46 if (m_vertex_adjacencies.size() == 0) {
47 throw RuntimeError("Vertex adjacencies is not computed.");
48 }
49
50 size_t begin = m_vertex_adjacency_index[i];
51 size_t end = m_vertex_adjacency_index[i+1];
52 return m_vertex_adjacencies.segment(begin, end-begin);
53}

Callers 6

propagate_supportsMethod · 0.45
compute_min_anglesFunction · 0.45
chain_wiresFunction · 0.45
generate_supportsFunction · 0.45
bevelFunction · 0.45
ASSERT_IS_ADJACENTMethod · 0.45

Calls 2

RuntimeErrorClass · 0.85
sizeMethod · 0.45

Tested by 1

ASSERT_IS_ADJACENTMethod · 0.36