#define MRVOXELS_API
Definition MRVoxelsFwd.h:13
size_t heapBytes(const std::vector< T > &vec)
returns the amount of memory given vector occupies on heap
Definition MRHeapBytes.h:15
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:576
Definition MRCameraOrientationPlugin.h:8
std::shared_ptr< OpenVdbFloatGrid > FloatGrid
Definition MRVoxelsFwd.h:25
MRVOXELS_API Expected< SimpleVolumeMinMax > functionVolumeToSimpleVolume(const FunctionVolume &volume, const ProgressCallback &callback={})
converts function volume into simple volume
tl::expected< T, E > Expected
Definition MRExpected.h:58
float ValueType
Definition MRVoxelsVolume.h:33
T ValueType
Definition MRVoxelsVolume.h:27
Definition MRVoxelsVolume.h:16
Definition MRVoxelsVolume.h:53
represents a box in 3D space subdivided on voxels stored in T
Definition MRVoxelsVolume.h:39
Vector3f voxelSize
Definition MRVoxelsVolume.h:44
size_t heapBytes() const
Definition MRVoxelsVolume.h:46
T data
Definition MRVoxelsVolume.h:42
Vector3i dims
Definition MRVoxelsVolume.h:43
typename VoxelTraits< T >::ValueType ValueType
Definition MRVoxelsVolume.h:40