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

Method get_voxel_adjacent_faces

src/Connectivity/MeshConnectivity.cpp:86–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86VectorI MeshConnectivity::get_voxel_adjacent_faces(size_t Vi) const {
87 assert(Vi+1 < m_voxel_face_adjacency_idx.size());
88 int pos = m_voxel_face_adjacency_idx[Vi];
89 int size = m_voxel_face_adjacency_idx[Vi+1] - pos;
90 return m_voxel_face_adjacency.segment(pos, size);
91}
92
93VectorI MeshConnectivity::get_voxel_adjacent_voxels(size_t Vi) const {
94 assert(Vi+1 < m_voxel_adjacency_idx.size());

Callers 1

compute_from_meshMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected