MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.VolumeIndexer Class Reference

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)
 

Detailed Description

Generated from:  MR::VolumeIndexer

Constructor & Destructor Documentation

◆ __init__() [1/2]

None mrmeshpy.VolumeIndexer.__init__ ( self,
Vector3i dims )

◆ __init__() [2/2]

None mrmeshpy.VolumeIndexer.__init__ ( self,
VolumeIndexer arg0 )
Implicit copy constructor.

Member Function Documentation

◆ areNeigbors() [1/2]

bool mrmeshpy.VolumeIndexer.areNeigbors ( self,
Id_VoxelTag v0,
Id_VoxelTag v1 )
returns true if v1 is within at most 6 neighbors of v0

◆ areNeigbors() [2/2]

bool mrmeshpy.VolumeIndexer.areNeigbors ( self,
Vector3i pos0,
Vector3i pos1 )

◆ dims()

Vector3i mrmeshpy.VolumeIndexer.dims ( self)

◆ endId()

Id_VoxelTag mrmeshpy.VolumeIndexer.endId ( self)
returns the last plus one voxel Id for defining iteration range

◆ getExistingNeighbor()

Id_VoxelTag 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)

◆ getNeighbor() [1/4]

Id_VoxelTag mrmeshpy.VolumeIndexer.getNeighbor ( self,
Id_VoxelTag v,
OutEdge toNei )
returns id of v's neighbor specified by the edge

◆ getNeighbor() [2/4]

Id_VoxelTag mrmeshpy.VolumeIndexer.getNeighbor ( self,
Id_VoxelTag v,
Vector3i pos,
bool bdPos,
OutEdge toNei )

◆ getNeighbor() [3/4]

Id_VoxelTag mrmeshpy.VolumeIndexer.getNeighbor ( self,
Id_VoxelTag v,
Vector3i pos,
OutEdge toNei )

◆ getNeighbor() [4/4]

VoxelLocation 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

◆ hasNeighbour()

bool mrmeshpy.VolumeIndexer.hasNeighbour ( self,
Vector3i pos,
OutEdge toNei )
given existing voxel at (pos), returns whether it has valid neighbor specified by the edge (toNei)

◆ isBdVoxel()

bool mrmeshpy.VolumeIndexer.isBdVoxel ( self,
Vector3i pos )
returns true if this voxel is on the boundary of the volume

◆ isInDims()

bool mrmeshpy.VolumeIndexer.isInDims ( self,
Vector3i pos )
returns true if this voxel is within dimensions

◆ size()

int mrmeshpy.VolumeIndexer.size ( self)
returns the total number of voxels

◆ sizeXY()

int mrmeshpy.VolumeIndexer.sizeXY ( self)

◆ toLoc() [1/2]

VoxelLocation mrmeshpy.VolumeIndexer.toLoc ( self,
Id_VoxelTag id )

◆ toLoc() [2/2]

VoxelLocation mrmeshpy.VolumeIndexer.toLoc ( self,
Vector3i pos )

◆ toPos()

Vector3i mrmeshpy.VolumeIndexer.toPos ( self,
Id_VoxelTag id )

◆ toVoxelId()

Id_VoxelTag mrmeshpy.VolumeIndexer.toVoxelId ( self,
Vector3i pos )

The documentation for this class was generated from the following file: