constexpr A & operator*=(A &a, B b)
Definition MRImGuiVectorOperators.h:114
constexpr A operator-(A a)
Definition MRImGuiVectorOperators.h:98
constexpr A operator+(A a)
Operators.
Definition MRImGuiVectorOperators.h:97
constexpr auto operator*(A a, B b)
Definition MRImGuiVectorOperators.h:107
constexpr A & operator-=(A &a, B b)
Definition MRImGuiVectorOperators.h:113
constexpr A & operator+=(A &a, B b)
Definition MRImGuiVectorOperators.h:112
#define MRVOXELS_API
see explanation in MRMesh/MRMeshFwd.h
Definition MRVoxelsFwd.h:14
#define MRVOXELS_CLASS
Definition MRVoxelsFwd.h:18
wrapper class that helps mrbind to avoid excess MRVDBFloatGrid.h includes
Definition MRFloatGrid.h:21
void swap(FloatGrid &other) noexcept
OpenVdbFloatGrid * get() const noexcept
static FloatGrid deepCopy(const FloatGrid &other) noexcept
std::shared_ptr< OpenVdbFloatGrid > toVdb() const noexcept
FloatGrid(std::shared_ptr< OpenVdbFloatGrid > ptr)
size_t heapBytes(const BitSet &bs)
returns the amount of memory given BitSet occupies on heap
Definition MRBitSet.h:364
size_t countVoxelsWithValueLess(const FloatGrid &grid, float value)
returns number of voxels in the grid with value less than given
FloatGrid resampled(const FloatGrid &grid, float voxelScale, ProgressCallback cb={})
resample this grid to fit voxelScale
void setValues(FloatGrid &grid, const VoxelBitSet ®ion, const std::vector< float > &values)
FloatGrid gaussianFiltered(const FloatGrid &grid, int width, int iters, ProgressCallback cb={})
void setValue(FloatGrid &grid, const Vector3i &p, float value)
size_t countVoxelsWithValueGreater(const FloatGrid &grid, float value)
returns number of voxels in the grid with value greater than given
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:753
void gaussianFilter(FloatGrid &grid, int width, int iters, ProgressCallback cb={})
returns grid with gaussian filter applied
size_t countVoxelsWithValuePred(const FloatGrid &grid, const std::function< bool(float)> &pred)
returns number of velxes in the grid with pred(value) == true
void setLevelSetType(FloatGrid &grid)
sets type of this grid as LEVEL SET (for normal flipping)
float getValue(const FloatGrid &grid, const Vector3i &p)
returns the value at given voxel
Box3i findActiveBounds(const FloatGrid &grid)
FloatGrid cropped(const FloatGrid &grid, const Box3i &box, ProgressCallback cb={})
returns cropped grid
auto width(const Box< V > &box)
returns size along x axis
Definition MRBox.h:354
@ other
Angle, normally float. Measure in radians.
Definition MRFeatureObject.h:27
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
this class just hides very complex type of typedef openvdb::FloatGrid
Definition MRVDBFloatGrid.h:22