This chapter represents documentation about basic structures elements.
More...
|
MRVOXELS_API size_t | MR::heapBytes (const FloatGrid &grid) |
| returns the amount of heap memory occupied by grid
|
|
MRVOXELS_API FloatGrid | MR::resampled (const FloatGrid &grid, float voxelScale, ProgressCallback cb={}) |
| resample this grid to fit voxelScale
|
|
MRVOXELS_API FloatGrid | MR::resampled (const FloatGrid &grid, const Vector3f &voxelScale, ProgressCallback cb={}) |
| resample this grid to fit voxelScale
|
|
MRVOXELS_API FloatGrid | MR::cropped (const FloatGrid &grid, const Box3i &box, ProgressCallback cb={}) |
| returns cropped grid
|
|
MRVOXELS_API float | MR::getValue (const FloatGrid &grid, const Vector3i &p) |
| returns the value at given voxel
|
|
MRVOXELS_API void | MR::setValue (FloatGrid &grid, const VoxelBitSet ®ion, float value) |
|
MRVOXELS_API void | MR::setLevelSetType (FloatGrid &grid) |
| sets type of this grid as LEVEL SET (for normal flipping)
|
|
MRVOXELS_API FloatGrid | MR::operator+= (FloatGrid &a, const FloatGrid &b) |
|
MRVOXELS_API FloatGrid | MR::operator-= (FloatGrid &a, const FloatGrid &b) |
|
MRVOXELS_API FloatGrid | MR::operator*= (FloatGrid &a, const FloatGrid &b) |
|
MR_BIND_IGNORE openvdb::FloatGrid & | MR::ovdb (OpenVdbFloatGrid &v) |
|
MR_BIND_IGNORE const openvdb::FloatGrid & | MR::ovdb (const OpenVdbFloatGrid &v) |
|
MR_BIND_IGNORE FloatGrid | MR::MakeFloatGrid (openvdb::FloatGrid::Ptr &&p) |
| makes MR::FloatGrid shared pointer taking the contents of the input pointer
|
|
MR_BIND_IGNORE Vector3i | MR::fromVdb (const openvdb::Coord &v) |
|
MR_BIND_IGNORE openvdb::Coord | MR::toVdb (const Vector3i &v) |
|
This chapter represents documentation about basic structures elements.
◆ ProgressCallback
Argument value - progress in [0,1]; returns true to continue the operation and returns false to stop the operation
◆ cropped()
◆ fromVdb()
MR_BIND_IGNORE Vector3i MR::fromVdb |
( |
const openvdb::Coord & | v | ) |
|
|
inline |
◆ getValue()
returns the value at given voxel
◆ heapBytes()
returns the amount of heap memory occupied by grid
◆ MakeFloatGrid()
MR_BIND_IGNORE FloatGrid MR::MakeFloatGrid |
( |
openvdb::FloatGrid::Ptr && | p | ) |
|
|
inline |
makes MR::FloatGrid shared pointer taking the contents of the input pointer
◆ operator*=()
◆ operator+=()
◆ operator-=()
◆ ovdb() [1/2]
MR_BIND_IGNORE const openvdb::FloatGrid & MR::ovdb |
( |
const OpenVdbFloatGrid & | v | ) |
|
|
inline |
◆ ovdb() [2/2]
◆ resampled() [1/2]
resample this grid to fit voxelScale
◆ resampled() [2/2]
resample this grid to fit voxelScale
◆ setLevelSetType()
sets type of this grid as LEVEL SET (for normal flipping)
◆ setValue()
sets given region voxels value
- Note
- region is in grid space (0 voxel id is minimum active voxel in grid)
◆ toVdb()
MR_BIND_IGNORE openvdb::Coord MR::toVdb |
( |
const Vector3i & | v | ) |
|
|
inline |