MeshLib C Docs
Loading...
Searching...
No Matches
MRComputeVolume.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
MRCMisc/exports.h
>
4
5
#ifdef __cplusplus
6
extern
"C"
{
7
#endif
8
9
typedef
struct
MR_AffineXf3f
MR_AffineXf3f
;
// Defined in `#include <MRCMesh/MRAffineXf.h>`.
10
typedef
struct
MR_Vector3f
MR_Vector3f
;
// Defined in `#include <MRCMesh/MRVector3.h>`.
11
typedef
struct
MR_std_vector_std_shared_ptr_MR_Mesh
MR_std_vector_std_shared_ptr_MR_Mesh
;
// Defined in `#include <MRCMisc/std_vector_std_shared_ptr_MR_Mesh.h>`.
12
13
14
// Computes summary volume of given meshes converting it to voxels of given size
15
// note that each mesh should have closed topology
16
// speed and precision depends on voxelSize (smaller voxel - faster, less precise; bigger voxel - slower, more precise)
21
MRC_API
float
MR_voxelizeAndComputeVolume
(
const
MR_std_vector_std_shared_ptr_MR_Mesh
*meshes,
const
MR_AffineXf3f
*xf,
const
MR_Vector3f
*voxelSize);
22
23
#ifdef __cplusplus
24
}
// extern "C"
25
#endif
MR_voxelizeAndComputeVolume
MRC_API float MR_voxelizeAndComputeVolume(const MR_std_vector_std_shared_ptr_MR_Mesh *meshes, const MR_AffineXf3f *xf, const MR_Vector3f *voxelSize)
exports.h
MRC_API
#define MRC_API
Definition
exports.h:11
MR_std_vector_std_shared_ptr_MR_Mesh
struct MR_std_vector_std_shared_ptr_MR_Mesh MR_std_vector_std_shared_ptr_MR_Mesh
Definition
std_vector_std_shared_ptr_MR_Mesh.h:18
MR_AffineXf3f
Definition
MRAffineXf.h:36
MR_Vector3f
Definition
MRVector3.h:51
MeshLib
Cbindings
MRCVoxels
MRComputeVolume.h
Generated by
1.11.0