MeshLib Documentation
Loading...
Searching...
No Matches
MRComputeVolume.h
Go to the documentation of this file.
1#pragma once
2#include "MRVoxelsFwd.h"
3
4#include <memory>
5
6namespace MR
7{
8
9// Computes summary volume of given meshes converting it to voxels of given size
10// note that each mesh should have closed topology
11// speed and precision depends on voxelSize (smaller voxel - faster, less precise; bigger voxel - slower, more precise)
12MRVOXELS_API float voxelizeAndComputeVolume( const std::vector<std::shared_ptr<Mesh>>& meshes, const AffineXf3f& xf, const Vector3f& voxelSize );
13
14}
#define MRVOXELS_API
Definition MRVoxelsFwd.h:13
Definition MRCameraOrientationPlugin.h:8
MRVOXELS_API float voxelizeAndComputeVolume(const std::vector< std::shared_ptr< Mesh > > &meshes, const AffineXf3f &xf, const Vector3f &voxelSize)