MeshLib Documentation
Loading...
Searching...
No Matches
Volume Indexer

Classes

struct  MR::VoxelLocation
 contains both linear Id and 3D coordinates of the same voxel More...
 
class  MR::VolumeIndexer
 

Enumerations

enum class  MR::OutEdge : signed char {
  MR::OutEdge::Invalid = -1 , MR::OutEdge::PlusZ = 0 , MR::OutEdge::MinusZ , MR::OutEdge::PlusY ,
  MR::OutEdge::MinusY , MR::OutEdge::PlusX , MR::OutEdge::MinusX , MR::OutEdge::Count
}
 

Functions

OutEdge MR::opposite (OutEdge e)
 
MRMESH_API void MR::expandVoxelsMask (VoxelBitSet &mask, const VolumeIndexer &indexer, int expansion=1)
 expands VoxelBitSet with given number of steps
 
MRMESH_API void MR::shrinkVoxelsMask (VoxelBitSet &mask, const VolumeIndexer &indexer, int shrinkage=1)
 shrinks VoxelBitSet with given number of steps
 

Variables

constexpr Vector3i MR::neiPosDelta [OutEdgeCount]
 

Detailed Description

Enumeration Type Documentation

◆ OutEdge

enum class MR::OutEdge : signed char
strong
Enumerator
Invalid 
PlusZ 
MinusZ 
PlusY 
MinusY 
PlusX 
MinusX 
Count 

Function Documentation

◆ expandVoxelsMask()

MRMESH_API void MR::expandVoxelsMask ( VoxelBitSet & mask,
const VolumeIndexer & indexer,
int expansion = 1 )

expands VoxelBitSet with given number of steps

◆ opposite()

OutEdge MR::opposite ( OutEdge e)
inlinenodiscard

◆ shrinkVoxelsMask()

MRMESH_API void MR::shrinkVoxelsMask ( VoxelBitSet & mask,
const VolumeIndexer & indexer,
int shrinkage = 1 )

shrinks VoxelBitSet with given number of steps

Variable Documentation

◆ neiPosDelta

Vector3i MR::neiPosDelta[OutEdgeCount]
constexpr
Initial value:
=
{
{ 0, 0, 1 },
{ 0, 0,-1 },
{ 0, 1, 0 },
{ 0,-1, 0 },
{ 1, 0, 0 },
{-1, 0, 0 }
}