MeshLib C++ Docs
Loading...
Searching...
No Matches
MRFloatGrid.h File Reference
#include "MRVoxelsFwd.h"

Go to the source code of this file.

Functions

MR_EXTERN_C_BEGIN MRMESHC_API MRFloatGridmrFloatGridResampledUniformly (const MRFloatGrid *grid, float voxelScale, MRProgressCallback cb)
 resample this grid with voxel size uniformly scaled by voxelScale
 
MRMESHC_API MRFloatGridmrFloatGridResampled (const MRFloatGrid *grid, const MRVector3f *voxelScale, MRProgressCallback cb)
 resample this grid with voxel size scaled by voxelScale in each dimension
 
MRMESHC_API MRFloatGridmrFloatGridCropped (const MRFloatGrid *grid, const MRBox3i *box, MRProgressCallback cb)
 returns cropped grid
 
MRMESHC_API float mrFloatGridGetValue (const MRFloatGrid *grid, const MRVector3i *p)
 returns the value at given voxel
 
MRMESHC_API void mrFloatGridSetValue (MRFloatGrid *grid, const MRVector3i *p, float value)
 sets given voxel
 
MRMESHC_API void mrFloatGridSetValueForRegion (MRFloatGrid *grid, const MRVoxelBitSet *region, float value)
 

Function Documentation

◆ mrFloatGridCropped()

MRMESHC_API MRFloatGrid * mrFloatGridCropped ( const MRFloatGrid * grid,
const MRBox3i * box,
MRProgressCallback cb )

returns cropped grid

◆ mrFloatGridGetValue()

MRMESHC_API float mrFloatGridGetValue ( const MRFloatGrid * grid,
const MRVector3i * p )

returns the value at given voxel

◆ mrFloatGridResampled()

MRMESHC_API MRFloatGrid * mrFloatGridResampled ( const MRFloatGrid * grid,
const MRVector3f * voxelScale,
MRProgressCallback cb )

resample this grid with voxel size scaled by voxelScale in each dimension

◆ mrFloatGridResampledUniformly()

MR_EXTERN_C_BEGIN MRMESHC_API MRFloatGrid * mrFloatGridResampledUniformly ( const MRFloatGrid * grid,
float voxelScale,
MRProgressCallback cb )

resample this grid with voxel size uniformly scaled by voxelScale

◆ mrFloatGridSetValue()

MRMESHC_API void mrFloatGridSetValue ( MRFloatGrid * grid,
const MRVector3i * p,
float value )

sets given voxel

◆ mrFloatGridSetValueForRegion()

MRMESHC_API void mrFloatGridSetValueForRegion ( MRFloatGrid * grid,
const MRVoxelBitSet * region,
float value )

sets given region voxels value

Note
region is in grid space (0 voxel id is minimum active voxel in grid)