MeshLib C++ Docs
Loading...
Searching...
No Matches
MRFloatGrid.h File Reference

Go to the source code of this file.

Classes

class  MR::FloatGrid
 wrapper class that helps mrbind to avoid excess MRVDBFloatGrid.h includes More...

Namespaces

namespace  MR
 only for bindings generation

Functions

size_t MR::heapBytes (const FloatGrid &grid)
 returns the amount of heap memory occupied by grid
FloatGrid MR::resampled (const FloatGrid &grid, float voxelScale, ProgressCallback cb={})
 resample this grid to fit voxelScale
FloatGrid MR::resampled (const FloatGrid &grid, const Vector3f &voxelScale, ProgressCallback cb={})
 resample this grid to fit voxelScale
FloatGrid MR::cropped (const FloatGrid &grid, const Box3i &box, ProgressCallback cb={})
 returns cropped grid
size_t MR::countVoxelsWithValuePred (const FloatGrid &grid, const std::function< bool(float)> &pred)
 returns number of velxes in the grid with pred(value) == true
size_t MR::countVoxelsWithValueLess (const FloatGrid &grid, float value)
 returns number of voxels in the grid with value less than given
size_t MR::countVoxelsWithValueGreater (const FloatGrid &grid, float value)
 returns number of voxels in the grid with value greater than given
void MR::gaussianFilter (FloatGrid &grid, int width, int iters, ProgressCallback cb={})
 returns grid with gaussian filter applied
FloatGrid MR::gaussianFiltered (const FloatGrid &grid, int width, int iters, ProgressCallback cb={})
float MR::getValue (const FloatGrid &grid, const Vector3i &p)
 returns the value at given voxel
void MR::setValue (FloatGrid &grid, const Vector3i &p, float value)
void MR::setValue (FloatGrid &grid, const VoxelBitSet &region, float value)
Box3i MR::findActiveBounds (const FloatGrid &grid)
void MR::setValues (FloatGrid &grid, const VoxelBitSet &region, const std::vector< float > &values)
void MR::setLevelSetType (FloatGrid &grid)
 sets type of this grid as LEVEL SET (for normal flipping)
FloatGrid MR::operator+= (FloatGrid &a, FloatGrid &&b)
FloatGrid MR::operator-= (FloatGrid &a, FloatGrid &&b)
FloatGrid MR::operator*= (FloatGrid &a, FloatGrid &&b)
FloatGrid MR::operator+ (const FloatGrid &a, const FloatGrid &b)
FloatGrid MR::operator- (const FloatGrid &a, const FloatGrid &b)
FloatGrid MR::operator* (const FloatGrid &a, const FloatGrid &b)

Variables

struct MRVOXELS_CLASS MR::OpenVdbFloatGrid