Public Member Functions | |
None | __init__ (self, Vector3i dims) |
None | __init__ (self, VolumeIndexer arg0) |
bool | areNeigbors (self, Id_VoxelTag v0, Id_VoxelTag v1) |
bool | areNeigbors (self, Vector3i pos0, Vector3i pos1) |
Vector3i | dims (self) |
Id_VoxelTag | endId (self) |
Id_VoxelTag | getExistingNeighbor (self, Id_VoxelTag v, OutEdge toNei) |
Id_VoxelTag | getNeighbor (self, Id_VoxelTag v, OutEdge toNei) |
Id_VoxelTag | getNeighbor (self, Id_VoxelTag v, Vector3i pos, OutEdge toNei) |
VoxelLocation | getNeighbor (self, VoxelLocation loc, OutEdge toNei) |
Id_VoxelTag | getNeighbor (self, Id_VoxelTag v, Vector3i pos, bool bdPos, OutEdge toNei) |
bool | hasNeighbour (self, Vector3i pos, OutEdge toNei) |
bool | isBdVoxel (self, Vector3i pos) |
bool | isInDims (self, Vector3i pos) |
int | size (self) |
int | sizeXY (self) |
VoxelLocation | toLoc (self, Id_VoxelTag id) |
VoxelLocation | toLoc (self, Vector3i pos) |
Vector3i | toPos (self, Id_VoxelTag id) |
Id_VoxelTag | toVoxelId (self, Vector3i pos) |
Generated from: MR::VolumeIndexer
None meshlib.mrmeshpy.VolumeIndexer.__init__ | ( | self, | |
Vector3i | dims ) |
None meshlib.mrmeshpy.VolumeIndexer.__init__ | ( | self, | |
VolumeIndexer | arg0 ) |
Implicit copy constructor.
bool meshlib.mrmeshpy.VolumeIndexer.areNeigbors | ( | self, | |
Id_VoxelTag | v0, | ||
Id_VoxelTag | v1 ) |
returns true if v1 is within at most 6 neighbors of v0
Vector3i meshlib.mrmeshpy.VolumeIndexer.dims | ( | self | ) |
Id_VoxelTag meshlib.mrmeshpy.VolumeIndexer.endId | ( | self | ) |
returns the last plus one voxel Id for defining iteration range
Id_VoxelTag meshlib.mrmeshpy.VolumeIndexer.getExistingNeighbor | ( | self, | |
Id_VoxelTag | v, | ||
OutEdge | toNei ) |
returns id of v's neighbor specified by the edge, which is known to exist (so skipping a lot of checks)
Id_VoxelTag meshlib.mrmeshpy.VolumeIndexer.getNeighbor | ( | self, | |
Id_VoxelTag | v, | ||
OutEdge | toNei ) |
returns id of v's neighbor specified by the edge
Id_VoxelTag meshlib.mrmeshpy.VolumeIndexer.getNeighbor | ( | self, | |
Id_VoxelTag | v, | ||
Vector3i | pos, | ||
bool | bdPos, | ||
OutEdge | toNei ) |
Id_VoxelTag meshlib.mrmeshpy.VolumeIndexer.getNeighbor | ( | self, | |
Id_VoxelTag | v, | ||
Vector3i | pos, | ||
OutEdge | toNei ) |
VoxelLocation meshlib.mrmeshpy.VolumeIndexer.getNeighbor | ( | self, | |
VoxelLocation | loc, | ||
OutEdge | toNei ) |
given existing voxel at (loc), returns its neighbor specified by the edge (toNei); if the neighbour does not exist (loc is on boundary), returns invalid VoxelLocation
given existing voxel at (pos), returns whether it has valid neighbor specified by the edge (toNei)
bool meshlib.mrmeshpy.VolumeIndexer.isBdVoxel | ( | self, | |
Vector3i | pos ) |
returns true if this voxel is on the boundary of the volume
bool meshlib.mrmeshpy.VolumeIndexer.isInDims | ( | self, | |
Vector3i | pos ) |
returns true if this voxel is within dimensions
int meshlib.mrmeshpy.VolumeIndexer.size | ( | self | ) |
returns the total number of voxels
int meshlib.mrmeshpy.VolumeIndexer.sizeXY | ( | self | ) |
VoxelLocation meshlib.mrmeshpy.VolumeIndexer.toLoc | ( | self, | |
Id_VoxelTag | id ) |
VoxelLocation meshlib.mrmeshpy.VolumeIndexer.toLoc | ( | self, | |
Vector3i | pos ) |
Vector3i meshlib.mrmeshpy.VolumeIndexer.toPos | ( | self, | |
Id_VoxelTag | id ) |
Id_VoxelTag meshlib.mrmeshpy.VolumeIndexer.toVoxelId | ( | self, | |
Vector3i | pos ) |