MeshLib C++ Docs
Loading...
Searching...
No Matches
MRMeshC/MRFloatGrid.h
Go to the documentation of this file.
1#pragma once
2#include "MRVoxelsFwd.h"
3
5
8
11
14
17
19MRMESHC_API void mrFloatGridSetValue( MRFloatGrid* grid, const MRVector3i* p, float value );
20
23MRMESHC_API void mrFloatGridSetValueForRegion( MRFloatGrid* grid, const MRVoxelBitSet* region, float value );
24
26
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
MRMESHC_API MRFloatGrid * mrFloatGridCropped(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)
MRMESHC_API MRFloatGrid * mrFloatGridResampled(const MRFloatGrid *grid, const MRVector3f *voxelScale, MRProgressCallback cb)
resample this grid with voxel size scaled by voxelScale in each dimension
#define MR_EXTERN_C_BEGIN
Definition MRMeshC/MRMeshFwd.h:26
bool(* MRProgressCallback)(float)
Definition MRMeshC/MRMeshFwd.h:54
#define MR_EXTERN_C_END
Definition MRMeshC/MRMeshFwd.h:27
#define MRMESHC_API
Definition MRMeshC/MRMeshFwd.h:19
struct MRVoxelBitSet MRVoxelBitSet
Definition MRMeshC/MRMeshFwd.h:39
typedefMR_EXTERN_C_BEGIN struct MRFloatGrid MRFloatGrid
Definition MRMeshC/MRVoxelsFwd.h:7
Definition MRMeshC/MRBox.h:36
three-dimensional vector of floats
Definition MRMeshC/MRVector3.h:9
three-dimensional vector of ints
Definition MRMeshC/MRVector3.h:46