This chapter represents documentation about basic structures elements.
More...
|
MRMESH_API size_t | MR::heapBytes (const FloatGrid &grid) |
| returns the amount of heap memory occupied by grid
|
|
MRMESH_API FloatGrid | MR::resampled (const FloatGrid &grid, float voxelScale, ProgressCallback cb={}) |
| resample this grid to fit voxelScale
|
|
MRMESH_API FloatGrid | MR::resampled (const FloatGrid &grid, const Vector3f &voxelScale, ProgressCallback cb={}) |
| resample this grid to fit voxelScale
|
|
MRMESH_API FloatGrid | MR::cropped (const FloatGrid &grid, const Box3i &box, ProgressCallback cb={}) |
| returns cropped grid
|
|
MRMESH_API float | MR::getValue (const FloatGrid &grid, const Vector3i &p) |
| returns the value at given voxel
|
|
MRMESH_API void | MR::setValue (FloatGrid &grid, const VoxelBitSet ®ion, float value) |
|
MRMESH_API void | MR::setLevelSetType (FloatGrid &grid) |
| sets type of this grid as LEVEL SET (for normal flipping)
|
|
MRMESH_API FloatGrid | MR::operator+= (FloatGrid &a, const FloatGrid &b) |
|
MRMESH_API FloatGrid | MR::operator-= (FloatGrid &a, const FloatGrid &b) |
|
MRMESH_API FloatGrid | MR::operator*= (FloatGrid &a, const FloatGrid &b) |
|
openvdb::FloatGrid & | MR::ovdb (OpenVdbFloatGrid &v) |
|
const openvdb::FloatGrid & | MR::ovdb (const OpenVdbFloatGrid &v) |
|
FloatGrid | MR::MakeFloatGrid (openvdb::FloatGrid::Ptr &&p) |
| makes MR::FloatGrid shared pointer taking the contents of the input pointer
|
|
Vector3i | MR::fromVdb (const openvdb::Coord &v) |
|
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()
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()
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]
◆ 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()
openvdb::Coord MR::toVdb |
( |
const Vector3i & | v | ) |
|
|
inline |