MeshLib
 
Loading...
Searching...
No Matches
MRComputeVolume.h
Go to the documentation of this file.
1#pragma once
2#include "MRMeshFwd.h"
3#ifndef MRMESH_NO_OPENVDB
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)
12MRMESH_API float voxelizeAndComputeVolume( const std::vector<std::shared_ptr<Mesh>>& meshes, const AffineXf3f& xf, const Vector3f& voxelSize );
13
14}
15#endif
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
represents a 3-dimentional float-typed vector
Definition MRDotNet/MRVector3.h:8
Definition MRCameraOrientationPlugin.h:7
MRMESH_API float voxelizeAndComputeVolume(const std::vector< std::shared_ptr< Mesh > > &meshes, const AffineXf3f &xf, const Vector3f &voxelSize)