This chapter represents documentation about basic structures elements. More...
Classes | |
struct | MR::Image |
struct | MR::MeshTexture |
struct | MR::SceneColors |
class | MR::SceneSettings |
struct | MR::OpenVdbFloatGrid |
this class just hides very complex type of typedef openvdb::FloatGrid More... | |
Typedefs | |
typedef std::function< bool(float)> | MR::ProgressCallback |
Functions | |
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 Vector3i &p, float value) |
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) |
MR_BIND_IGNORE openvdb::CoordBBox | MR::toVdbBox (const Box3i &box) |
MR_BIND_IGNORE openvdb::CoordBBox | MR::toVdbBox (const Vector3i &dims) |
This chapter represents documentation about basic structures elements.
typedef std::function<bool( float )> MR::ProgressCallback |
Argument value - progress in [0,1]; returns true to continue the operation and returns false to stop the operation
MRVOXELS_API FloatGrid MR::cropped | ( | const FloatGrid & | grid, |
const Box3i & | box, | ||
ProgressCallback | cb = {} ) |
returns cropped grid
|
inline |
|
nodiscard |
returns the value at given voxel
|
nodiscard |
returns the amount of heap memory occupied by grid
|
inline |
makes MR::FloatGrid shared pointer taking the contents of the input pointer
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 ) |
|
inline |
|
inline |
MRVOXELS_API FloatGrid MR::resampled | ( | const FloatGrid & | grid, |
const Vector3f & | voxelScale, | ||
ProgressCallback | cb = {} ) |
resample this grid to fit voxelScale
MRVOXELS_API FloatGrid MR::resampled | ( | const FloatGrid & | grid, |
float | voxelScale, | ||
ProgressCallback | cb = {} ) |
resample this grid to fit voxelScale
MRVOXELS_API void MR::setLevelSetType | ( | FloatGrid & | grid | ) |
sets type of this grid as LEVEL SET (for normal flipping)
MRVOXELS_API void MR::setValue | ( | FloatGrid & | grid, |
const Vector3i & | p, | ||
float | value ) |
sets given region voxels value
MRVOXELS_API void MR::setValue | ( | FloatGrid & | grid, |
const VoxelBitSet & | region, | ||
float | value ) |
sets given region voxels value
|
inline |
|
inline |
|
inline |