| 84 | } |
| 85 | |
| 86 | VectorI 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 | |
| 93 | VectorI MeshConnectivity::get_voxel_adjacent_voxels(size_t Vi) const { |
| 94 | assert(Vi+1 < m_voxel_adjacency_idx.size()); |