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
6
namespace
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)
12
MRVOXELS_API
float
voxelizeAndComputeVolume
(
const
std::vector<std::shared_ptr<Mesh>>& meshes,
const
AffineXf3f& xf,
const
Vector3f& voxelSize );
13
14
}
MRVoxelsFwd.h
MRVOXELS_API
#define MRVOXELS_API
Definition
MRVoxelsFwd.h:13
MR
Definition
MRCameraOrientationPlugin.h:8
MR::voxelizeAndComputeVolume
MRVOXELS_API float voxelizeAndComputeVolume(const std::vector< std::shared_ptr< Mesh > > &meshes, const AffineXf3f &xf, const Vector3f &voxelSize)
MeshLib
source
MRVoxels
MRComputeVolume.h
Generated by
1.11.0