MeshLib C Docs
Loading...
Searching...
No Matches
MRVDBConversions.h File Reference
#include <MRCMesh/MRAffineXf.h>
#include <MRCMesh/MRBox.h>
#include <MRCMesh/MRVector3.h>
#include <MRCMisc/common.h>
#include <MRCMisc/exports.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Typedefs

typedef struct MR_Box3i MR_Box3i
 
typedef struct MR_FloatGrid MR_FloatGrid
 
typedef struct MR_FunctionVolume MR_FunctionVolume
 
typedef struct MR_Mesh MR_Mesh
 
typedef struct MR_MeshPart MR_MeshPart
 
typedef struct MR_SimpleVolume MR_SimpleVolume
 
typedef struct MR_SimpleVolumeMinMax MR_SimpleVolumeMinMax
 
typedef struct MR_VdbVolume MR_VdbVolume
 
typedef struct MR_expected_MR_Mesh_std_string MR_expected_MR_Mesh_std_string
 
typedef struct MR_expected_MR_SimpleVolumeMinMaxU16_std_string MR_expected_MR_SimpleVolumeMinMaxU16_std_string
 
typedef struct MR_expected_MR_SimpleVolumeMinMax_std_string MR_expected_MR_SimpleVolumeMinMax_std_string
 
typedef struct MR_expected_MR_VdbVolume_std_string MR_expected_MR_VdbVolume_std_string
 
typedef struct MR_expected_void_std_string MR_expected_void_std_string
 
typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float
 
typedef struct MR_std_shared_ptr_MR_IFastWindingNumber MR_std_shared_ptr_MR_IFastWindingNumber
 
typedef struct MR_MeshToVolumeParams MR_MeshToVolumeParams
 Generated from class MR::MeshToVolumeParams.
 
typedef int32_t MR_MeshToVolumeParams_Type
 
typedef struct MR_GridToMeshSettings MR_GridToMeshSettings
 
typedef struct MR_MakeSignedByWindingNumberSettings MR_MakeSignedByWindingNumberSettings
 Generated from class MR::MakeSignedByWindingNumberSettings.
 
typedef struct MR_DoubleOffsetSettings MR_DoubleOffsetSettings
 Generated from class MR::DoubleOffsetSettings.
 

Enumerations

enum  { MR_MeshToVolumeParams_Type_Signed = 0 , MR_MeshToVolumeParams_Type_Unsigned = 1 }
 

Functions

MRC_API MR_FloatGridMR_meshToLevelSet (const MR_MeshPart *mp, const MR_AffineXf3f *xf, const MR_Vector3f *voxelSize, const float *surfaceOffset, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb)
 
MRC_API MR_FloatGridMR_meshToDistanceField (const MR_MeshPart *mp, const MR_AffineXf3f *xf, const MR_Vector3f *voxelSize, const float *surfaceOffset, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb)
 
MRC_API const MR_MeshToVolumeParams_TypeMR_MeshToVolumeParams_Get_type (const MR_MeshToVolumeParams *_this)
 
MRC_API void MR_MeshToVolumeParams_Set_type (MR_MeshToVolumeParams *_this, MR_MeshToVolumeParams_Type value)
 
MRC_API MR_MeshToVolumeParams_TypeMR_MeshToVolumeParams_GetMutable_type (MR_MeshToVolumeParams *_this)
 
MRC_API const float * MR_MeshToVolumeParams_Get_surfaceOffset (const MR_MeshToVolumeParams *_this)
 
MRC_API void MR_MeshToVolumeParams_Set_surfaceOffset (MR_MeshToVolumeParams *_this, float value)
 
MRC_API float * MR_MeshToVolumeParams_GetMutable_surfaceOffset (MR_MeshToVolumeParams *_this)
 
MRC_API const MR_Vector3fMR_MeshToVolumeParams_Get_voxelSize (const MR_MeshToVolumeParams *_this)
 
MRC_API void MR_MeshToVolumeParams_Set_voxelSize (MR_MeshToVolumeParams *_this, MR_Vector3f value)
 
MRC_API MR_Vector3fMR_MeshToVolumeParams_GetMutable_voxelSize (MR_MeshToVolumeParams *_this)
 
MRC_API const MR_AffineXf3fMR_MeshToVolumeParams_Get_worldXf (const MR_MeshToVolumeParams *_this)
 
MRC_API void MR_MeshToVolumeParams_Set_worldXf (MR_MeshToVolumeParams *_this, MR_AffineXf3f value)
 
MRC_API MR_AffineXf3fMR_MeshToVolumeParams_GetMutable_worldXf (MR_MeshToVolumeParams *_this)
 
MRC_API MR_AffineXf3f *const * MR_MeshToVolumeParams_Get_outXf (const MR_MeshToVolumeParams *_this)
 
MRC_API void MR_MeshToVolumeParams_Set_outXf (MR_MeshToVolumeParams *_this, MR_AffineXf3f *value)
 
MRC_API MR_AffineXf3f ** MR_MeshToVolumeParams_GetMutable_outXf (MR_MeshToVolumeParams *_this)
 
MRC_API const MR_std_function_bool_from_floatMR_MeshToVolumeParams_Get_cb (const MR_MeshToVolumeParams *_this)
 
MRC_API void MR_MeshToVolumeParams_Set_cb (MR_MeshToVolumeParams *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *value)
 
MRC_API MR_std_function_bool_from_floatMR_MeshToVolumeParams_GetMutable_cb (MR_MeshToVolumeParams *_this)
 
MRC_API MR_MeshToVolumeParamsMR_MeshToVolumeParams_DefaultConstruct (void)
 
MRC_API MR_MeshToVolumeParamsMR_MeshToVolumeParams_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_MeshToVolumeParamsMR_MeshToVolumeParams_ConstructFrom (MR_MeshToVolumeParams_Type type, float surfaceOffset, MR_Vector3f voxelSize, MR_AffineXf3f worldXf, MR_AffineXf3f *outXf, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb)
 
MRC_API const MR_MeshToVolumeParamsMR_MeshToVolumeParams_OffsetPtr (const MR_MeshToVolumeParams *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_MeshToVolumeParamsMR_MeshToVolumeParams_OffsetMutablePtr (MR_MeshToVolumeParams *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_MeshToVolumeParamsMR_MeshToVolumeParams_ConstructFromAnother (MR_PassBy _other_pass_by, MR_MeshToVolumeParams *_other)
 
MRC_API void MR_MeshToVolumeParams_Destroy (const MR_MeshToVolumeParams *_this)
 Destroys a heap-allocated instance of MR_MeshToVolumeParams. Does nothing if the pointer is null.
 
MRC_API void MR_MeshToVolumeParams_DestroyArray (const MR_MeshToVolumeParams *_this)
 Destroys a heap-allocated array of MR_MeshToVolumeParams. Does nothing if the pointer is null.
 
MRC_API MR_MeshToVolumeParamsMR_MeshToVolumeParams_AssignFromAnother (MR_MeshToVolumeParams *_this, MR_PassBy _other_pass_by, MR_MeshToVolumeParams *_other)
 
MRC_API void MR_evalGridMinMax (const MR_FloatGrid *grid, float *min, float *max)
 
MRC_API MR_expected_MR_VdbVolume_std_stringMR_meshToDistanceVdbVolume (const MR_MeshPart *mp, const MR_MeshToVolumeParams *params)
 
MRC_API MR_expected_MR_VdbVolume_std_stringMR_meshToVolume (const MR_MeshPart *mp, const MR_MeshToVolumeParams *params)
 
MRC_API MR_VdbVolumeMR_floatGridToVdbVolume (MR_PassBy grid_pass_by, MR_FloatGrid *grid)
 
MRC_API MR_FloatGridMR_simpleVolumeToDenseGrid (const MR_SimpleVolume *simpleVolume, const float *background, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb)
 
MRC_API MR_VdbVolumeMR_simpleVolumeToVdbVolume (const MR_SimpleVolumeMinMax *simpleVolume, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb)
 
MRC_API MR_VdbVolumeMR_functionVolumeToVdbVolume (const MR_FunctionVolume *functoinVolume, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb)
 
MRC_API MR_expected_MR_SimpleVolumeMinMax_std_stringMR_vdbVolumeToSimpleVolume (const MR_VdbVolume *vdbVolume, const MR_Box3i *activeBox, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb)
 
MRC_API MR_expected_MR_SimpleVolumeMinMax_std_stringMR_vdbVolumeToSimpleVolumeNorm (const MR_VdbVolume *vdbVolume, const MR_Box3i *activeBox, const MR_Box1f *sourceScale, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb)
 
MRC_API MR_expected_MR_SimpleVolumeMinMaxU16_std_stringMR_vdbVolumeToSimpleVolumeU16 (const MR_VdbVolume *vdbVolume, const MR_Box3i *activeBox, const MR_Box1f *sourceScale, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb)
 
MRC_API const MR_Vector3fMR_GridToMeshSettings_Get_voxelSize (const MR_GridToMeshSettings *_this)
 
MRC_API void MR_GridToMeshSettings_Set_voxelSize (MR_GridToMeshSettings *_this, MR_Vector3f value)
 
MRC_API MR_Vector3fMR_GridToMeshSettings_GetMutable_voxelSize (MR_GridToMeshSettings *_this)
 
MRC_API const float * MR_GridToMeshSettings_Get_isoValue (const MR_GridToMeshSettings *_this)
 
MRC_API void MR_GridToMeshSettings_Set_isoValue (MR_GridToMeshSettings *_this, float value)
 
MRC_API float * MR_GridToMeshSettings_GetMutable_isoValue (MR_GridToMeshSettings *_this)
 
MRC_API const float * MR_GridToMeshSettings_Get_adaptivity (const MR_GridToMeshSettings *_this)
 
MRC_API void MR_GridToMeshSettings_Set_adaptivity (MR_GridToMeshSettings *_this, float value)
 
MRC_API float * MR_GridToMeshSettings_GetMutable_adaptivity (MR_GridToMeshSettings *_this)
 
MRC_API const int32_t * MR_GridToMeshSettings_Get_maxFaces (const MR_GridToMeshSettings *_this)
 
MRC_API void MR_GridToMeshSettings_Set_maxFaces (MR_GridToMeshSettings *_this, int32_t value)
 
MRC_API int32_t * MR_GridToMeshSettings_GetMutable_maxFaces (MR_GridToMeshSettings *_this)
 
MRC_API const int32_t * MR_GridToMeshSettings_Get_maxVertices (const MR_GridToMeshSettings *_this)
 
MRC_API void MR_GridToMeshSettings_Set_maxVertices (MR_GridToMeshSettings *_this, int32_t value)
 
MRC_API int32_t * MR_GridToMeshSettings_GetMutable_maxVertices (MR_GridToMeshSettings *_this)
 
MRC_API const bool * MR_GridToMeshSettings_Get_relaxDisorientedTriangles (const MR_GridToMeshSettings *_this)
 
MRC_API void MR_GridToMeshSettings_Set_relaxDisorientedTriangles (MR_GridToMeshSettings *_this, bool value)
 
MRC_API bool * MR_GridToMeshSettings_GetMutable_relaxDisorientedTriangles (MR_GridToMeshSettings *_this)
 
MRC_API const MR_std_function_bool_from_floatMR_GridToMeshSettings_Get_cb (const MR_GridToMeshSettings *_this)
 
MRC_API void MR_GridToMeshSettings_Set_cb (MR_GridToMeshSettings *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *value)
 
MRC_API MR_std_function_bool_from_floatMR_GridToMeshSettings_GetMutable_cb (MR_GridToMeshSettings *_this)
 
MRC_API MR_GridToMeshSettingsMR_GridToMeshSettings_DefaultConstruct (void)
 
MRC_API MR_GridToMeshSettingsMR_GridToMeshSettings_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_GridToMeshSettingsMR_GridToMeshSettings_ConstructFrom (MR_Vector3f voxelSize, float isoValue, float adaptivity, int32_t maxFaces, int32_t maxVertices, bool relaxDisorientedTriangles, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb)
 
MRC_API const MR_GridToMeshSettingsMR_GridToMeshSettings_OffsetPtr (const MR_GridToMeshSettings *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_GridToMeshSettingsMR_GridToMeshSettings_OffsetMutablePtr (MR_GridToMeshSettings *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_GridToMeshSettingsMR_GridToMeshSettings_ConstructFromAnother (MR_PassBy _other_pass_by, MR_GridToMeshSettings *_other)
 
MRC_API void MR_GridToMeshSettings_Destroy (const MR_GridToMeshSettings *_this)
 Destroys a heap-allocated instance of MR_GridToMeshSettings. Does nothing if the pointer is null.
 
MRC_API void MR_GridToMeshSettings_DestroyArray (const MR_GridToMeshSettings *_this)
 Destroys a heap-allocated array of MR_GridToMeshSettings. Does nothing if the pointer is null.
 
MRC_API MR_GridToMeshSettingsMR_GridToMeshSettings_AssignFromAnother (MR_GridToMeshSettings *_this, MR_PassBy _other_pass_by, MR_GridToMeshSettings *_other)
 
MRC_API MR_expected_MR_Mesh_std_stringMR_gridToMesh_const_MR_FloatGrid_ref (const MR_FloatGrid *grid, const MR_GridToMeshSettings *settings)
 
MRC_API MR_expected_MR_Mesh_std_stringMR_gridToMesh_MR_FloatGrid_rvalue_ref (MR_FloatGrid *grid, const MR_GridToMeshSettings *settings)
 
MRC_API const MR_AffineXf3fMR_MakeSignedByWindingNumberSettings_Get_meshToGridXf (const MR_MakeSignedByWindingNumberSettings *_this)
 
MRC_API void MR_MakeSignedByWindingNumberSettings_Set_meshToGridXf (MR_MakeSignedByWindingNumberSettings *_this, MR_AffineXf3f value)
 
MRC_API MR_AffineXf3fMR_MakeSignedByWindingNumberSettings_GetMutable_meshToGridXf (MR_MakeSignedByWindingNumberSettings *_this)
 
MRC_API const MR_std_shared_ptr_MR_IFastWindingNumberMR_MakeSignedByWindingNumberSettings_Get_fwn (const MR_MakeSignedByWindingNumberSettings *_this)
 
MRC_API void MR_MakeSignedByWindingNumberSettings_Set_fwn (MR_MakeSignedByWindingNumberSettings *_this, MR_PassBy value_pass_by, MR_std_shared_ptr_MR_IFastWindingNumber *value)
 
MRC_API MR_std_shared_ptr_MR_IFastWindingNumberMR_MakeSignedByWindingNumberSettings_GetMutable_fwn (MR_MakeSignedByWindingNumberSettings *_this)
 
MRC_API const float * MR_MakeSignedByWindingNumberSettings_Get_windingNumberThreshold (const MR_MakeSignedByWindingNumberSettings *_this)
 
MRC_API void MR_MakeSignedByWindingNumberSettings_Set_windingNumberThreshold (MR_MakeSignedByWindingNumberSettings *_this, float value)
 
MRC_API float * MR_MakeSignedByWindingNumberSettings_GetMutable_windingNumberThreshold (MR_MakeSignedByWindingNumberSettings *_this)
 
MRC_API const float * MR_MakeSignedByWindingNumberSettings_Get_windingNumberBeta (const MR_MakeSignedByWindingNumberSettings *_this)
 
MRC_API void MR_MakeSignedByWindingNumberSettings_Set_windingNumberBeta (MR_MakeSignedByWindingNumberSettings *_this, float value)
 
MRC_API float * MR_MakeSignedByWindingNumberSettings_GetMutable_windingNumberBeta (MR_MakeSignedByWindingNumberSettings *_this)
 
MRC_API const MR_std_function_bool_from_floatMR_MakeSignedByWindingNumberSettings_Get_progress (const MR_MakeSignedByWindingNumberSettings *_this)
 
MRC_API void MR_MakeSignedByWindingNumberSettings_Set_progress (MR_MakeSignedByWindingNumberSettings *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *value)
 
MRC_API MR_std_function_bool_from_floatMR_MakeSignedByWindingNumberSettings_GetMutable_progress (MR_MakeSignedByWindingNumberSettings *_this)
 
MRC_API MR_MakeSignedByWindingNumberSettingsMR_MakeSignedByWindingNumberSettings_DefaultConstruct (void)
 
MRC_API MR_MakeSignedByWindingNumberSettingsMR_MakeSignedByWindingNumberSettings_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_MakeSignedByWindingNumberSettingsMR_MakeSignedByWindingNumberSettings_ConstructFrom (MR_AffineXf3f meshToGridXf, MR_PassBy fwn_pass_by, MR_std_shared_ptr_MR_IFastWindingNumber *fwn, float windingNumberThreshold, float windingNumberBeta, MR_PassBy progress_pass_by, MR_std_function_bool_from_float *progress)
 
MRC_API const MR_MakeSignedByWindingNumberSettingsMR_MakeSignedByWindingNumberSettings_OffsetPtr (const MR_MakeSignedByWindingNumberSettings *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_MakeSignedByWindingNumberSettingsMR_MakeSignedByWindingNumberSettings_OffsetMutablePtr (MR_MakeSignedByWindingNumberSettings *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_MakeSignedByWindingNumberSettingsMR_MakeSignedByWindingNumberSettings_ConstructFromAnother (MR_PassBy _other_pass_by, MR_MakeSignedByWindingNumberSettings *_other)
 
MRC_API void MR_MakeSignedByWindingNumberSettings_Destroy (const MR_MakeSignedByWindingNumberSettings *_this)
 Destroys a heap-allocated instance of MR_MakeSignedByWindingNumberSettings. Does nothing if the pointer is null.
 
MRC_API void MR_MakeSignedByWindingNumberSettings_DestroyArray (const MR_MakeSignedByWindingNumberSettings *_this)
 Destroys a heap-allocated array of MR_MakeSignedByWindingNumberSettings. Does nothing if the pointer is null.
 
MRC_API MR_MakeSignedByWindingNumberSettingsMR_MakeSignedByWindingNumberSettings_AssignFromAnother (MR_MakeSignedByWindingNumberSettings *_this, MR_PassBy _other_pass_by, MR_MakeSignedByWindingNumberSettings *_other)
 
MRC_API MR_expected_void_std_stringMR_makeSignedByWindingNumber (MR_FloatGrid *grid, const MR_Vector3f *voxelSize, const MR_Mesh *refMesh, const MR_MakeSignedByWindingNumberSettings *settings)
 
MRC_API const float * MR_DoubleOffsetSettings_Get_voxelSize (const MR_DoubleOffsetSettings *_this)
 
MRC_API void MR_DoubleOffsetSettings_Set_voxelSize (MR_DoubleOffsetSettings *_this, float value)
 
MRC_API float * MR_DoubleOffsetSettings_GetMutable_voxelSize (MR_DoubleOffsetSettings *_this)
 
MRC_API const float * MR_DoubleOffsetSettings_Get_offsetA (const MR_DoubleOffsetSettings *_this)
 
MRC_API void MR_DoubleOffsetSettings_Set_offsetA (MR_DoubleOffsetSettings *_this, float value)
 
MRC_API float * MR_DoubleOffsetSettings_GetMutable_offsetA (MR_DoubleOffsetSettings *_this)
 
MRC_API const float * MR_DoubleOffsetSettings_Get_offsetB (const MR_DoubleOffsetSettings *_this)
 
MRC_API void MR_DoubleOffsetSettings_Set_offsetB (MR_DoubleOffsetSettings *_this, float value)
 
MRC_API float * MR_DoubleOffsetSettings_GetMutable_offsetB (MR_DoubleOffsetSettings *_this)
 
MRC_API const float * MR_DoubleOffsetSettings_Get_adaptivity (const MR_DoubleOffsetSettings *_this)
 
MRC_API void MR_DoubleOffsetSettings_Set_adaptivity (MR_DoubleOffsetSettings *_this, float value)
 
MRC_API float * MR_DoubleOffsetSettings_GetMutable_adaptivity (MR_DoubleOffsetSettings *_this)
 
MRC_API const MR_std_shared_ptr_MR_IFastWindingNumberMR_DoubleOffsetSettings_Get_fwn (const MR_DoubleOffsetSettings *_this)
 
MRC_API void MR_DoubleOffsetSettings_Set_fwn (MR_DoubleOffsetSettings *_this, MR_PassBy value_pass_by, MR_std_shared_ptr_MR_IFastWindingNumber *value)
 
MRC_API MR_std_shared_ptr_MR_IFastWindingNumberMR_DoubleOffsetSettings_GetMutable_fwn (MR_DoubleOffsetSettings *_this)
 
MRC_API const float * MR_DoubleOffsetSettings_Get_windingNumberThreshold (const MR_DoubleOffsetSettings *_this)
 
MRC_API void MR_DoubleOffsetSettings_Set_windingNumberThreshold (MR_DoubleOffsetSettings *_this, float value)
 
MRC_API float * MR_DoubleOffsetSettings_GetMutable_windingNumberThreshold (MR_DoubleOffsetSettings *_this)
 
MRC_API const float * MR_DoubleOffsetSettings_Get_windingNumberBeta (const MR_DoubleOffsetSettings *_this)
 
MRC_API void MR_DoubleOffsetSettings_Set_windingNumberBeta (MR_DoubleOffsetSettings *_this, float value)
 
MRC_API float * MR_DoubleOffsetSettings_GetMutable_windingNumberBeta (MR_DoubleOffsetSettings *_this)
 
MRC_API const MR_std_function_bool_from_floatMR_DoubleOffsetSettings_Get_progress (const MR_DoubleOffsetSettings *_this)
 
MRC_API void MR_DoubleOffsetSettings_Set_progress (MR_DoubleOffsetSettings *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *value)
 
MRC_API MR_std_function_bool_from_floatMR_DoubleOffsetSettings_GetMutable_progress (MR_DoubleOffsetSettings *_this)
 
MRC_API MR_DoubleOffsetSettingsMR_DoubleOffsetSettings_DefaultConstruct (void)
 
MRC_API MR_DoubleOffsetSettingsMR_DoubleOffsetSettings_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_DoubleOffsetSettingsMR_DoubleOffsetSettings_ConstructFrom (float voxelSize, float offsetA, float offsetB, float adaptivity, MR_PassBy fwn_pass_by, MR_std_shared_ptr_MR_IFastWindingNumber *fwn, float windingNumberThreshold, float windingNumberBeta, MR_PassBy progress_pass_by, MR_std_function_bool_from_float *progress)
 
MRC_API const MR_DoubleOffsetSettingsMR_DoubleOffsetSettings_OffsetPtr (const MR_DoubleOffsetSettings *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_DoubleOffsetSettingsMR_DoubleOffsetSettings_OffsetMutablePtr (MR_DoubleOffsetSettings *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_DoubleOffsetSettingsMR_DoubleOffsetSettings_ConstructFromAnother (MR_PassBy _other_pass_by, MR_DoubleOffsetSettings *_other)
 
MRC_API void MR_DoubleOffsetSettings_Destroy (const MR_DoubleOffsetSettings *_this)
 Destroys a heap-allocated instance of MR_DoubleOffsetSettings. Does nothing if the pointer is null.
 
MRC_API void MR_DoubleOffsetSettings_DestroyArray (const MR_DoubleOffsetSettings *_this)
 Destroys a heap-allocated array of MR_DoubleOffsetSettings. Does nothing if the pointer is null.
 
MRC_API MR_DoubleOffsetSettingsMR_DoubleOffsetSettings_AssignFromAnother (MR_DoubleOffsetSettings *_this, MR_PassBy _other_pass_by, MR_DoubleOffsetSettings *_other)
 
MRC_API MR_expected_MR_Mesh_std_stringMR_doubleOffsetVdb (const MR_MeshPart *mp, const MR_DoubleOffsetSettings *settings)
 

Typedef Documentation

◆ MR_Box3i

typedef struct MR_Box3i MR_Box3i

◆ MR_DoubleOffsetSettings

◆ MR_expected_MR_Mesh_std_string

◆ MR_expected_MR_SimpleVolumeMinMax_std_string

◆ MR_expected_MR_SimpleVolumeMinMaxU16_std_string

◆ MR_expected_MR_VdbVolume_std_string

◆ MR_expected_void_std_string

◆ MR_FloatGrid

typedef struct MR_FloatGrid MR_FloatGrid

◆ MR_FunctionVolume

◆ MR_GridToMeshSettings

parameters of OpenVDB Grid to Mesh conversion using Dual Marching Cubes algorithm Generated from class MR::GridToMeshSettings.

◆ MR_MakeSignedByWindingNumberSettings

◆ MR_Mesh

typedef struct MR_Mesh MR_Mesh

◆ MR_MeshPart

typedef struct MR_MeshPart MR_MeshPart

◆ MR_MeshToVolumeParams

◆ MR_MeshToVolumeParams_Type

typedef int32_t MR_MeshToVolumeParams_Type

◆ MR_SimpleVolume

◆ MR_SimpleVolumeMinMax

◆ MR_std_function_bool_from_float

◆ MR_std_shared_ptr_MR_IFastWindingNumber

◆ MR_VdbVolume

typedef struct MR_VdbVolume MR_VdbVolume

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MR_MeshToVolumeParams_Type_Signed 
MR_MeshToVolumeParams_Type_Unsigned 

Function Documentation

◆ MR_DoubleOffsetSettings_AssignFromAnother()

MRC_API MR_DoubleOffsetSettings * MR_DoubleOffsetSettings_AssignFromAnother ( MR_DoubleOffsetSettings * _this,
MR_PassBy _other_pass_by,
MR_DoubleOffsetSettings * _other )

Generated from a method of class MR::DoubleOffsetSettings named operator=. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_DoubleOffsetSettings_ConstructFrom()

MRC_API MR_DoubleOffsetSettings * MR_DoubleOffsetSettings_ConstructFrom ( float voxelSize,
float offsetA,
float offsetB,
float adaptivity,
MR_PassBy fwn_pass_by,
MR_std_shared_ptr_MR_IFastWindingNumber * fwn,
float windingNumberThreshold,
float windingNumberBeta,
MR_PassBy progress_pass_by,
MR_std_function_bool_from_float * progress )

Constructs MR::DoubleOffsetSettings elementwise. Never returns null. Returns an instance allocated on the heap! Must call MR_DoubleOffsetSettings_Destroy() to free it when you're done using it.

◆ MR_DoubleOffsetSettings_ConstructFromAnother()

MRC_API MR_DoubleOffsetSettings * MR_DoubleOffsetSettings_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_DoubleOffsetSettings * _other )

Generated from a constructor of class MR::DoubleOffsetSettings. Never returns null. Returns an instance allocated on the heap! Must call MR_DoubleOffsetSettings_Destroy() to free it when you're done using it.

◆ MR_DoubleOffsetSettings_DefaultConstruct()

MRC_API MR_DoubleOffsetSettings * MR_DoubleOffsetSettings_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_DoubleOffsetSettings_Destroy() to free it when you're done using it.

◆ MR_DoubleOffsetSettings_DefaultConstructArray()

MRC_API MR_DoubleOffsetSettings * MR_DoubleOffsetSettings_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_DoubleOffsetSettings_DestroyArray(). Use MR_DoubleOffsetSettings_OffsetMutablePtr() and MR_DoubleOffsetSettings_OffsetPtr() to access the array elements.

◆ MR_DoubleOffsetSettings_Destroy()

MRC_API void MR_DoubleOffsetSettings_Destroy ( const MR_DoubleOffsetSettings * _this)

Destroys a heap-allocated instance of MR_DoubleOffsetSettings. Does nothing if the pointer is null.

◆ MR_DoubleOffsetSettings_DestroyArray()

MRC_API void MR_DoubleOffsetSettings_DestroyArray ( const MR_DoubleOffsetSettings * _this)

Destroys a heap-allocated array of MR_DoubleOffsetSettings. Does nothing if the pointer is null.

◆ MR_DoubleOffsetSettings_Get_adaptivity()

MRC_API const float * MR_DoubleOffsetSettings_Get_adaptivity ( const MR_DoubleOffsetSettings * _this)

in [0; 1] - ratio of combining small triangles into bigger ones (curvature can be lost on high values) Returns a pointer to a member variable of class MR::DoubleOffsetSettings named adaptivity. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_DoubleOffsetSettings_Get_fwn()

MRC_API const MR_std_shared_ptr_MR_IFastWindingNumber * MR_DoubleOffsetSettings_Get_fwn ( const MR_DoubleOffsetSettings * _this)

defines particular implementation of IFastWindingNumber interface that will compute windings. If it is not specified, default FastWindingNumber is used Returns a pointer to a member variable of class MR::DoubleOffsetSettings named fwn. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_DoubleOffsetSettings_Get_offsetA()

MRC_API const float * MR_DoubleOffsetSettings_Get_offsetA ( const MR_DoubleOffsetSettings * _this)

the amount of first offset Returns a pointer to a member variable of class MR::DoubleOffsetSettings named offsetA. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_DoubleOffsetSettings_Get_offsetB()

MRC_API const float * MR_DoubleOffsetSettings_Get_offsetB ( const MR_DoubleOffsetSettings * _this)

the amount of second offset Returns a pointer to a member variable of class MR::DoubleOffsetSettings named offsetB. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_DoubleOffsetSettings_Get_progress()

MRC_API const MR_std_function_bool_from_float * MR_DoubleOffsetSettings_Get_progress ( const MR_DoubleOffsetSettings * _this)

to report algorithm's progress and to cancel it Returns a pointer to a member variable of class MR::DoubleOffsetSettings named progress. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_DoubleOffsetSettings_Get_voxelSize()

MRC_API const float * MR_DoubleOffsetSettings_Get_voxelSize ( const MR_DoubleOffsetSettings * _this)

the size of voxel in intermediate voxel grid representation Returns a pointer to a member variable of class MR::DoubleOffsetSettings named voxelSize. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_DoubleOffsetSettings_Get_windingNumberBeta()

MRC_API const float * MR_DoubleOffsetSettings_Get_windingNumberBeta ( const MR_DoubleOffsetSettings * _this)

determines the precision of fast approximation: the more the better, minimum value is 1 Returns a pointer to a member variable of class MR::DoubleOffsetSettings named windingNumberBeta. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_DoubleOffsetSettings_Get_windingNumberThreshold()

MRC_API const float * MR_DoubleOffsetSettings_Get_windingNumberThreshold ( const MR_DoubleOffsetSettings * _this)

positive distance if winding number below or equal this threshold; ideal threshold: 0.5 for closed meshes; 0.0 for planar meshes Returns a pointer to a member variable of class MR::DoubleOffsetSettings named windingNumberThreshold. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_DoubleOffsetSettings_GetMutable_adaptivity()

MRC_API float * MR_DoubleOffsetSettings_GetMutable_adaptivity ( MR_DoubleOffsetSettings * _this)

in [0; 1] - ratio of combining small triangles into bigger ones (curvature can be lost on high values) Returns a mutable pointer to a member variable of class MR::DoubleOffsetSettings named adaptivity. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_DoubleOffsetSettings_GetMutable_fwn()

MRC_API MR_std_shared_ptr_MR_IFastWindingNumber * MR_DoubleOffsetSettings_GetMutable_fwn ( MR_DoubleOffsetSettings * _this)

defines particular implementation of IFastWindingNumber interface that will compute windings. If it is not specified, default FastWindingNumber is used Returns a mutable pointer to a member variable of class MR::DoubleOffsetSettings named fwn. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_DoubleOffsetSettings_GetMutable_offsetA()

MRC_API float * MR_DoubleOffsetSettings_GetMutable_offsetA ( MR_DoubleOffsetSettings * _this)

the amount of first offset Returns a mutable pointer to a member variable of class MR::DoubleOffsetSettings named offsetA. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_DoubleOffsetSettings_GetMutable_offsetB()

MRC_API float * MR_DoubleOffsetSettings_GetMutable_offsetB ( MR_DoubleOffsetSettings * _this)

the amount of second offset Returns a mutable pointer to a member variable of class MR::DoubleOffsetSettings named offsetB. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_DoubleOffsetSettings_GetMutable_progress()

MRC_API MR_std_function_bool_from_float * MR_DoubleOffsetSettings_GetMutable_progress ( MR_DoubleOffsetSettings * _this)

to report algorithm's progress and to cancel it Returns a mutable pointer to a member variable of class MR::DoubleOffsetSettings named progress. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_DoubleOffsetSettings_GetMutable_voxelSize()

MRC_API float * MR_DoubleOffsetSettings_GetMutable_voxelSize ( MR_DoubleOffsetSettings * _this)

the size of voxel in intermediate voxel grid representation Returns a mutable pointer to a member variable of class MR::DoubleOffsetSettings named voxelSize. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_DoubleOffsetSettings_GetMutable_windingNumberBeta()

MRC_API float * MR_DoubleOffsetSettings_GetMutable_windingNumberBeta ( MR_DoubleOffsetSettings * _this)

determines the precision of fast approximation: the more the better, minimum value is 1 Returns a mutable pointer to a member variable of class MR::DoubleOffsetSettings named windingNumberBeta. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_DoubleOffsetSettings_GetMutable_windingNumberThreshold()

MRC_API float * MR_DoubleOffsetSettings_GetMutable_windingNumberThreshold ( MR_DoubleOffsetSettings * _this)

positive distance if winding number below or equal this threshold; ideal threshold: 0.5 for closed meshes; 0.0 for planar meshes Returns a mutable pointer to a member variable of class MR::DoubleOffsetSettings named windingNumberThreshold. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_DoubleOffsetSettings_OffsetMutablePtr()

MRC_API MR_DoubleOffsetSettings * MR_DoubleOffsetSettings_OffsetMutablePtr ( MR_DoubleOffsetSettings * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_DoubleOffsetSettings_OffsetPtr()

MRC_API const MR_DoubleOffsetSettings * MR_DoubleOffsetSettings_OffsetPtr ( const MR_DoubleOffsetSettings * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_DoubleOffsetSettings_Set_adaptivity()

MRC_API void MR_DoubleOffsetSettings_Set_adaptivity ( MR_DoubleOffsetSettings * _this,
float value )

in [0; 1] - ratio of combining small triangles into bigger ones (curvature can be lost on high values) Modifies a member variable of class MR::DoubleOffsetSettings named adaptivity. Parameter _this can not be null. It is a single object.

◆ MR_DoubleOffsetSettings_Set_fwn()

MRC_API void MR_DoubleOffsetSettings_Set_fwn ( MR_DoubleOffsetSettings * _this,
MR_PassBy value_pass_by,
MR_std_shared_ptr_MR_IFastWindingNumber * value )

defines particular implementation of IFastWindingNumber interface that will compute windings. If it is not specified, default FastWindingNumber is used Modifies a member variable of class MR::DoubleOffsetSettings named fwn. Parameter _this can not be null. It is a single object.

◆ MR_DoubleOffsetSettings_Set_offsetA()

MRC_API void MR_DoubleOffsetSettings_Set_offsetA ( MR_DoubleOffsetSettings * _this,
float value )

the amount of first offset Modifies a member variable of class MR::DoubleOffsetSettings named offsetA. Parameter _this can not be null. It is a single object.

◆ MR_DoubleOffsetSettings_Set_offsetB()

MRC_API void MR_DoubleOffsetSettings_Set_offsetB ( MR_DoubleOffsetSettings * _this,
float value )

the amount of second offset Modifies a member variable of class MR::DoubleOffsetSettings named offsetB. Parameter _this can not be null. It is a single object.

◆ MR_DoubleOffsetSettings_Set_progress()

MRC_API void MR_DoubleOffsetSettings_Set_progress ( MR_DoubleOffsetSettings * _this,
MR_PassBy value_pass_by,
MR_std_function_bool_from_float * value )

to report algorithm's progress and to cancel it Modifies a member variable of class MR::DoubleOffsetSettings named progress. Parameter _this can not be null. It is a single object.

◆ MR_DoubleOffsetSettings_Set_voxelSize()

MRC_API void MR_DoubleOffsetSettings_Set_voxelSize ( MR_DoubleOffsetSettings * _this,
float value )

the size of voxel in intermediate voxel grid representation Modifies a member variable of class MR::DoubleOffsetSettings named voxelSize. Parameter _this can not be null. It is a single object.

◆ MR_DoubleOffsetSettings_Set_windingNumberBeta()

MRC_API void MR_DoubleOffsetSettings_Set_windingNumberBeta ( MR_DoubleOffsetSettings * _this,
float value )

determines the precision of fast approximation: the more the better, minimum value is 1 Modifies a member variable of class MR::DoubleOffsetSettings named windingNumberBeta. Parameter _this can not be null. It is a single object.

◆ MR_DoubleOffsetSettings_Set_windingNumberThreshold()

MRC_API void MR_DoubleOffsetSettings_Set_windingNumberThreshold ( MR_DoubleOffsetSettings * _this,
float value )

positive distance if winding number below or equal this threshold; ideal threshold: 0.5 for closed meshes; 0.0 for planar meshes Modifies a member variable of class MR::DoubleOffsetSettings named windingNumberThreshold. Parameter _this can not be null. It is a single object.

◆ MR_doubleOffsetVdb()

MRC_API MR_expected_MR_Mesh_std_string * MR_doubleOffsetVdb ( const MR_MeshPart * mp,
const MR_DoubleOffsetSettings * settings )

performs convention from mesh to voxel grid and back with offsetA, and than same with offsetB; if input mesh is not closed then the sign of distance field will be obtained using generalized winding number computation Generated from function MR::doubleOffsetVdb. Parameter mp can not be null. It is a single object. Parameter settings can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_Mesh_std_string_Destroy() to free it when you're done using it.

◆ MR_evalGridMinMax()

MRC_API void MR_evalGridMinMax ( const MR_FloatGrid * grid,
float * min,
float * max )

Generated from function MR::evalGridMinMax. Parameter grid can not be null. It is a single object. Parameter min can not be null. It is a single object. Parameter max can not be null. It is a single object.

◆ MR_floatGridToVdbVolume()

MRC_API MR_VdbVolume * MR_floatGridToVdbVolume ( MR_PassBy grid_pass_by,
MR_FloatGrid * grid )

Generated from function MR::floatGridToVdbVolume. Never returns null. Returns an instance allocated on the heap! Must call MR_VdbVolume_Destroy() to free it when you're done using it.

◆ MR_functionVolumeToVdbVolume()

MRC_API MR_VdbVolume * MR_functionVolumeToVdbVolume ( const MR_FunctionVolume * functoinVolume,
MR_PassBy cb_pass_by,
MR_std_function_bool_from_float * cb )

Generated from function MR::functionVolumeToVdbVolume. Parameter functoinVolume can not be null. It is a single object. Parameter cb has a default argument: {}, pass MR_PassBy_DefaultArgument and a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_VdbVolume_Destroy() to free it when you're done using it.

◆ MR_gridToMesh_const_MR_FloatGrid_ref()

MRC_API MR_expected_MR_Mesh_std_string * MR_gridToMesh_const_MR_FloatGrid_ref ( const MR_FloatGrid * grid,
const MR_GridToMeshSettings * settings )

converts OpenVDB Grid into mesh using Dual Marching Cubes algorithm Generated from function MR::gridToMesh. Parameter grid can not be null. It is a single object. Parameter settings can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_Mesh_std_string_Destroy() to free it when you're done using it.

◆ MR_gridToMesh_MR_FloatGrid_rvalue_ref()

MRC_API MR_expected_MR_Mesh_std_string * MR_gridToMesh_MR_FloatGrid_rvalue_ref ( MR_FloatGrid * grid,
const MR_GridToMeshSettings * settings )

converts OpenVDB Grid into mesh using Dual Marching Cubes algorithm; deletes grid in the middle to reduce peak memory consumption Generated from function MR::gridToMesh. Parameter grid can not be null. It is a single object. In C++ this parameter takes an rvalue reference: it might invalidate the passed object, but if your pointer is owning, you must still destroy it manually later. Parameter settings can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_Mesh_std_string_Destroy() to free it when you're done using it.

◆ MR_GridToMeshSettings_AssignFromAnother()

MRC_API MR_GridToMeshSettings * MR_GridToMeshSettings_AssignFromAnother ( MR_GridToMeshSettings * _this,
MR_PassBy _other_pass_by,
MR_GridToMeshSettings * _other )

Generated from a method of class MR::GridToMeshSettings named operator=. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_GridToMeshSettings_ConstructFrom()

MRC_API MR_GridToMeshSettings * MR_GridToMeshSettings_ConstructFrom ( MR_Vector3f voxelSize,
float isoValue,
float adaptivity,
int32_t maxFaces,
int32_t maxVertices,
bool relaxDisorientedTriangles,
MR_PassBy cb_pass_by,
MR_std_function_bool_from_float * cb )

Constructs MR::GridToMeshSettings elementwise. Never returns null. Returns an instance allocated on the heap! Must call MR_GridToMeshSettings_Destroy() to free it when you're done using it.

◆ MR_GridToMeshSettings_ConstructFromAnother()

MRC_API MR_GridToMeshSettings * MR_GridToMeshSettings_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_GridToMeshSettings * _other )

Generated from a constructor of class MR::GridToMeshSettings. Never returns null. Returns an instance allocated on the heap! Must call MR_GridToMeshSettings_Destroy() to free it when you're done using it.

◆ MR_GridToMeshSettings_DefaultConstruct()

MRC_API MR_GridToMeshSettings * MR_GridToMeshSettings_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_GridToMeshSettings_Destroy() to free it when you're done using it.

◆ MR_GridToMeshSettings_DefaultConstructArray()

MRC_API MR_GridToMeshSettings * MR_GridToMeshSettings_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_GridToMeshSettings_DestroyArray(). Use MR_GridToMeshSettings_OffsetMutablePtr() and MR_GridToMeshSettings_OffsetPtr() to access the array elements.

◆ MR_GridToMeshSettings_Destroy()

MRC_API void MR_GridToMeshSettings_Destroy ( const MR_GridToMeshSettings * _this)

Destroys a heap-allocated instance of MR_GridToMeshSettings. Does nothing if the pointer is null.

◆ MR_GridToMeshSettings_DestroyArray()

MRC_API void MR_GridToMeshSettings_DestroyArray ( const MR_GridToMeshSettings * _this)

Destroys a heap-allocated array of MR_GridToMeshSettings. Does nothing if the pointer is null.

◆ MR_GridToMeshSettings_Get_adaptivity()

MRC_API const float * MR_GridToMeshSettings_Get_adaptivity ( const MR_GridToMeshSettings * _this)

adaptivity - [0.0;1.0] ratio of combining small triangles into bigger ones (curvature can be lost on high values) Returns a pointer to a member variable of class MR::GridToMeshSettings named adaptivity. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_GridToMeshSettings_Get_cb()

MRC_API const MR_std_function_bool_from_float * MR_GridToMeshSettings_Get_cb ( const MR_GridToMeshSettings * _this)

to receive progress and request cancellation Returns a pointer to a member variable of class MR::GridToMeshSettings named cb. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_GridToMeshSettings_Get_isoValue()

MRC_API const float * MR_GridToMeshSettings_Get_isoValue ( const MR_GridToMeshSettings * _this)

layer of grid with this value would be converted in mesh; isoValue can be negative only in level set grids Returns a pointer to a member variable of class MR::GridToMeshSettings named isoValue. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_GridToMeshSettings_Get_maxFaces()

MRC_API const int32_t * MR_GridToMeshSettings_Get_maxFaces ( const MR_GridToMeshSettings * _this)

if the mesh exceeds this number of faces, an error returns Returns a pointer to a member variable of class MR::GridToMeshSettings named maxFaces. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_GridToMeshSettings_Get_maxVertices()

MRC_API const int32_t * MR_GridToMeshSettings_Get_maxVertices ( const MR_GridToMeshSettings * _this)

if the mesh exceeds this number of vertices, an error returns Returns a pointer to a member variable of class MR::GridToMeshSettings named maxVertices. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_GridToMeshSettings_Get_relaxDisorientedTriangles()

MRC_API const bool * MR_GridToMeshSettings_Get_relaxDisorientedTriangles ( const MR_GridToMeshSettings * _this)

Returns a pointer to a member variable of class MR::GridToMeshSettings named relaxDisorientedTriangles. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_GridToMeshSettings_Get_voxelSize()

MRC_API const MR_Vector3f * MR_GridToMeshSettings_Get_voxelSize ( const MR_GridToMeshSettings * _this)

the size of each voxel in the grid Returns a pointer to a member variable of class MR::GridToMeshSettings named voxelSize. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_GridToMeshSettings_GetMutable_adaptivity()

MRC_API float * MR_GridToMeshSettings_GetMutable_adaptivity ( MR_GridToMeshSettings * _this)

adaptivity - [0.0;1.0] ratio of combining small triangles into bigger ones (curvature can be lost on high values) Returns a mutable pointer to a member variable of class MR::GridToMeshSettings named adaptivity. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_GridToMeshSettings_GetMutable_cb()

MRC_API MR_std_function_bool_from_float * MR_GridToMeshSettings_GetMutable_cb ( MR_GridToMeshSettings * _this)

to receive progress and request cancellation Returns a mutable pointer to a member variable of class MR::GridToMeshSettings named cb. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_GridToMeshSettings_GetMutable_isoValue()

MRC_API float * MR_GridToMeshSettings_GetMutable_isoValue ( MR_GridToMeshSettings * _this)

layer of grid with this value would be converted in mesh; isoValue can be negative only in level set grids Returns a mutable pointer to a member variable of class MR::GridToMeshSettings named isoValue. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_GridToMeshSettings_GetMutable_maxFaces()

MRC_API int32_t * MR_GridToMeshSettings_GetMutable_maxFaces ( MR_GridToMeshSettings * _this)

if the mesh exceeds this number of faces, an error returns Returns a mutable pointer to a member variable of class MR::GridToMeshSettings named maxFaces. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_GridToMeshSettings_GetMutable_maxVertices()

MRC_API int32_t * MR_GridToMeshSettings_GetMutable_maxVertices ( MR_GridToMeshSettings * _this)

if the mesh exceeds this number of vertices, an error returns Returns a mutable pointer to a member variable of class MR::GridToMeshSettings named maxVertices. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_GridToMeshSettings_GetMutable_relaxDisorientedTriangles()

MRC_API bool * MR_GridToMeshSettings_GetMutable_relaxDisorientedTriangles ( MR_GridToMeshSettings * _this)

Returns a mutable pointer to a member variable of class MR::GridToMeshSettings named relaxDisorientedTriangles. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_GridToMeshSettings_GetMutable_voxelSize()

MRC_API MR_Vector3f * MR_GridToMeshSettings_GetMutable_voxelSize ( MR_GridToMeshSettings * _this)

the size of each voxel in the grid Returns a mutable pointer to a member variable of class MR::GridToMeshSettings named voxelSize. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_GridToMeshSettings_OffsetMutablePtr()

MRC_API MR_GridToMeshSettings * MR_GridToMeshSettings_OffsetMutablePtr ( MR_GridToMeshSettings * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_GridToMeshSettings_OffsetPtr()

MRC_API const MR_GridToMeshSettings * MR_GridToMeshSettings_OffsetPtr ( const MR_GridToMeshSettings * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_GridToMeshSettings_Set_adaptivity()

MRC_API void MR_GridToMeshSettings_Set_adaptivity ( MR_GridToMeshSettings * _this,
float value )

adaptivity - [0.0;1.0] ratio of combining small triangles into bigger ones (curvature can be lost on high values) Modifies a member variable of class MR::GridToMeshSettings named adaptivity. Parameter _this can not be null. It is a single object.

◆ MR_GridToMeshSettings_Set_cb()

MRC_API void MR_GridToMeshSettings_Set_cb ( MR_GridToMeshSettings * _this,
MR_PassBy value_pass_by,
MR_std_function_bool_from_float * value )

to receive progress and request cancellation Modifies a member variable of class MR::GridToMeshSettings named cb. Parameter _this can not be null. It is a single object.

◆ MR_GridToMeshSettings_Set_isoValue()

MRC_API void MR_GridToMeshSettings_Set_isoValue ( MR_GridToMeshSettings * _this,
float value )

layer of grid with this value would be converted in mesh; isoValue can be negative only in level set grids Modifies a member variable of class MR::GridToMeshSettings named isoValue. Parameter _this can not be null. It is a single object.

◆ MR_GridToMeshSettings_Set_maxFaces()

MRC_API void MR_GridToMeshSettings_Set_maxFaces ( MR_GridToMeshSettings * _this,
int32_t value )

if the mesh exceeds this number of faces, an error returns Modifies a member variable of class MR::GridToMeshSettings named maxFaces. Parameter _this can not be null. It is a single object.

◆ MR_GridToMeshSettings_Set_maxVertices()

MRC_API void MR_GridToMeshSettings_Set_maxVertices ( MR_GridToMeshSettings * _this,
int32_t value )

if the mesh exceeds this number of vertices, an error returns Modifies a member variable of class MR::GridToMeshSettings named maxVertices. Parameter _this can not be null. It is a single object.

◆ MR_GridToMeshSettings_Set_relaxDisorientedTriangles()

MRC_API void MR_GridToMeshSettings_Set_relaxDisorientedTriangles ( MR_GridToMeshSettings * _this,
bool value )

Modifies a member variable of class MR::GridToMeshSettings named relaxDisorientedTriangles. Parameter _this can not be null. It is a single object.

◆ MR_GridToMeshSettings_Set_voxelSize()

MRC_API void MR_GridToMeshSettings_Set_voxelSize ( MR_GridToMeshSettings * _this,
MR_Vector3f value )

the size of each voxel in the grid Modifies a member variable of class MR::GridToMeshSettings named voxelSize. Parameter _this can not be null. It is a single object.

◆ MR_makeSignedByWindingNumber()

MRC_API MR_expected_void_std_string * MR_makeSignedByWindingNumber ( MR_FloatGrid * grid,
const MR_Vector3f * voxelSize,
const MR_Mesh * refMesh,
const MR_MakeSignedByWindingNumberSettings * settings )

set signs for unsigned distance field grid using generalized winding number computed at voxel grid point from refMesh Generated from function MR::makeSignedByWindingNumber. Parameter grid can not be null. It is a single object. Parameter voxelSize can not be null. It is a single object. Parameter refMesh can not be null. It is a single object. Parameter settings can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.

◆ MR_MakeSignedByWindingNumberSettings_AssignFromAnother()

MRC_API MR_MakeSignedByWindingNumberSettings * MR_MakeSignedByWindingNumberSettings_AssignFromAnother ( MR_MakeSignedByWindingNumberSettings * _this,
MR_PassBy _other_pass_by,
MR_MakeSignedByWindingNumberSettings * _other )

Generated from a method of class MR::MakeSignedByWindingNumberSettings named operator=. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MakeSignedByWindingNumberSettings_ConstructFrom()

MRC_API MR_MakeSignedByWindingNumberSettings * MR_MakeSignedByWindingNumberSettings_ConstructFrom ( MR_AffineXf3f meshToGridXf,
MR_PassBy fwn_pass_by,
MR_std_shared_ptr_MR_IFastWindingNumber * fwn,
float windingNumberThreshold,
float windingNumberBeta,
MR_PassBy progress_pass_by,
MR_std_function_bool_from_float * progress )

Constructs MR::MakeSignedByWindingNumberSettings elementwise. Never returns null. Returns an instance allocated on the heap! Must call MR_MakeSignedByWindingNumberSettings_Destroy() to free it when you're done using it.

◆ MR_MakeSignedByWindingNumberSettings_ConstructFromAnother()

MRC_API MR_MakeSignedByWindingNumberSettings * MR_MakeSignedByWindingNumberSettings_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_MakeSignedByWindingNumberSettings * _other )

Generated from a constructor of class MR::MakeSignedByWindingNumberSettings. Never returns null. Returns an instance allocated on the heap! Must call MR_MakeSignedByWindingNumberSettings_Destroy() to free it when you're done using it.

◆ MR_MakeSignedByWindingNumberSettings_DefaultConstruct()

MRC_API MR_MakeSignedByWindingNumberSettings * MR_MakeSignedByWindingNumberSettings_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_MakeSignedByWindingNumberSettings_Destroy() to free it when you're done using it.

◆ MR_MakeSignedByWindingNumberSettings_DefaultConstructArray()

MRC_API MR_MakeSignedByWindingNumberSettings * MR_MakeSignedByWindingNumberSettings_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_MakeSignedByWindingNumberSettings_DestroyArray(). Use MR_MakeSignedByWindingNumberSettings_OffsetMutablePtr() and MR_MakeSignedByWindingNumberSettings_OffsetPtr() to access the array elements.

◆ MR_MakeSignedByWindingNumberSettings_Destroy()

MRC_API void MR_MakeSignedByWindingNumberSettings_Destroy ( const MR_MakeSignedByWindingNumberSettings * _this)

Destroys a heap-allocated instance of MR_MakeSignedByWindingNumberSettings. Does nothing if the pointer is null.

◆ MR_MakeSignedByWindingNumberSettings_DestroyArray()

MRC_API void MR_MakeSignedByWindingNumberSettings_DestroyArray ( const MR_MakeSignedByWindingNumberSettings * _this)

Destroys a heap-allocated array of MR_MakeSignedByWindingNumberSettings. Does nothing if the pointer is null.

◆ MR_MakeSignedByWindingNumberSettings_Get_fwn()

MRC_API const MR_std_shared_ptr_MR_IFastWindingNumber * MR_MakeSignedByWindingNumberSettings_Get_fwn ( const MR_MakeSignedByWindingNumberSettings * _this)

defines particular implementation of IFastWindingNumber interface that will compute windings. If it is not specified, default FastWindingNumber is used Returns a pointer to a member variable of class MR::MakeSignedByWindingNumberSettings named fwn. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MakeSignedByWindingNumberSettings_Get_meshToGridXf()

MRC_API const MR_AffineXf3f * MR_MakeSignedByWindingNumberSettings_Get_meshToGridXf ( const MR_MakeSignedByWindingNumberSettings * _this)

defines the mapping from mesh reference from to grid reference frame Returns a pointer to a member variable of class MR::MakeSignedByWindingNumberSettings named meshToGridXf. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MakeSignedByWindingNumberSettings_Get_progress()

MRC_API const MR_std_function_bool_from_float * MR_MakeSignedByWindingNumberSettings_Get_progress ( const MR_MakeSignedByWindingNumberSettings * _this)

to report algorithm's progress and to cancel it Returns a pointer to a member variable of class MR::MakeSignedByWindingNumberSettings named progress. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MakeSignedByWindingNumberSettings_Get_windingNumberBeta()

MRC_API const float * MR_MakeSignedByWindingNumberSettings_Get_windingNumberBeta ( const MR_MakeSignedByWindingNumberSettings * _this)

determines the precision of fast approximation: the more the better, minimum value is 1 Returns a pointer to a member variable of class MR::MakeSignedByWindingNumberSettings named windingNumberBeta. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MakeSignedByWindingNumberSettings_Get_windingNumberThreshold()

MRC_API const float * MR_MakeSignedByWindingNumberSettings_Get_windingNumberThreshold ( const MR_MakeSignedByWindingNumberSettings * _this)

positive distance if winding number below or equal this threshold; ideal threshold: 0.5 for closed meshes; 0.0 for planar meshes Returns a pointer to a member variable of class MR::MakeSignedByWindingNumberSettings named windingNumberThreshold. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MakeSignedByWindingNumberSettings_GetMutable_fwn()

MRC_API MR_std_shared_ptr_MR_IFastWindingNumber * MR_MakeSignedByWindingNumberSettings_GetMutable_fwn ( MR_MakeSignedByWindingNumberSettings * _this)

defines particular implementation of IFastWindingNumber interface that will compute windings. If it is not specified, default FastWindingNumber is used Returns a mutable pointer to a member variable of class MR::MakeSignedByWindingNumberSettings named fwn. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MakeSignedByWindingNumberSettings_GetMutable_meshToGridXf()

MRC_API MR_AffineXf3f * MR_MakeSignedByWindingNumberSettings_GetMutable_meshToGridXf ( MR_MakeSignedByWindingNumberSettings * _this)

defines the mapping from mesh reference from to grid reference frame Returns a mutable pointer to a member variable of class MR::MakeSignedByWindingNumberSettings named meshToGridXf. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MakeSignedByWindingNumberSettings_GetMutable_progress()

MRC_API MR_std_function_bool_from_float * MR_MakeSignedByWindingNumberSettings_GetMutable_progress ( MR_MakeSignedByWindingNumberSettings * _this)

to report algorithm's progress and to cancel it Returns a mutable pointer to a member variable of class MR::MakeSignedByWindingNumberSettings named progress. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MakeSignedByWindingNumberSettings_GetMutable_windingNumberBeta()

MRC_API float * MR_MakeSignedByWindingNumberSettings_GetMutable_windingNumberBeta ( MR_MakeSignedByWindingNumberSettings * _this)

determines the precision of fast approximation: the more the better, minimum value is 1 Returns a mutable pointer to a member variable of class MR::MakeSignedByWindingNumberSettings named windingNumberBeta. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MakeSignedByWindingNumberSettings_GetMutable_windingNumberThreshold()

MRC_API float * MR_MakeSignedByWindingNumberSettings_GetMutable_windingNumberThreshold ( MR_MakeSignedByWindingNumberSettings * _this)

positive distance if winding number below or equal this threshold; ideal threshold: 0.5 for closed meshes; 0.0 for planar meshes Returns a mutable pointer to a member variable of class MR::MakeSignedByWindingNumberSettings named windingNumberThreshold. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MakeSignedByWindingNumberSettings_OffsetMutablePtr()

MRC_API MR_MakeSignedByWindingNumberSettings * MR_MakeSignedByWindingNumberSettings_OffsetMutablePtr ( MR_MakeSignedByWindingNumberSettings * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_MakeSignedByWindingNumberSettings_OffsetPtr()

MRC_API const MR_MakeSignedByWindingNumberSettings * MR_MakeSignedByWindingNumberSettings_OffsetPtr ( const MR_MakeSignedByWindingNumberSettings * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_MakeSignedByWindingNumberSettings_Set_fwn()

MRC_API void MR_MakeSignedByWindingNumberSettings_Set_fwn ( MR_MakeSignedByWindingNumberSettings * _this,
MR_PassBy value_pass_by,
MR_std_shared_ptr_MR_IFastWindingNumber * value )

defines particular implementation of IFastWindingNumber interface that will compute windings. If it is not specified, default FastWindingNumber is used Modifies a member variable of class MR::MakeSignedByWindingNumberSettings named fwn. Parameter _this can not be null. It is a single object.

◆ MR_MakeSignedByWindingNumberSettings_Set_meshToGridXf()

MRC_API void MR_MakeSignedByWindingNumberSettings_Set_meshToGridXf ( MR_MakeSignedByWindingNumberSettings * _this,
MR_AffineXf3f value )

defines the mapping from mesh reference from to grid reference frame Modifies a member variable of class MR::MakeSignedByWindingNumberSettings named meshToGridXf. Parameter _this can not be null. It is a single object.

◆ MR_MakeSignedByWindingNumberSettings_Set_progress()

MRC_API void MR_MakeSignedByWindingNumberSettings_Set_progress ( MR_MakeSignedByWindingNumberSettings * _this,
MR_PassBy value_pass_by,
MR_std_function_bool_from_float * value )

to report algorithm's progress and to cancel it Modifies a member variable of class MR::MakeSignedByWindingNumberSettings named progress. Parameter _this can not be null. It is a single object.

◆ MR_MakeSignedByWindingNumberSettings_Set_windingNumberBeta()

MRC_API void MR_MakeSignedByWindingNumberSettings_Set_windingNumberBeta ( MR_MakeSignedByWindingNumberSettings * _this,
float value )

determines the precision of fast approximation: the more the better, minimum value is 1 Modifies a member variable of class MR::MakeSignedByWindingNumberSettings named windingNumberBeta. Parameter _this can not be null. It is a single object.

◆ MR_MakeSignedByWindingNumberSettings_Set_windingNumberThreshold()

MRC_API void MR_MakeSignedByWindingNumberSettings_Set_windingNumberThreshold ( MR_MakeSignedByWindingNumberSettings * _this,
float value )

positive distance if winding number below or equal this threshold; ideal threshold: 0.5 for closed meshes; 0.0 for planar meshes Modifies a member variable of class MR::MakeSignedByWindingNumberSettings named windingNumberThreshold. Parameter _this can not be null. It is a single object.

◆ MR_meshToDistanceField()

MRC_API MR_FloatGrid * MR_meshToDistanceField ( const MR_MeshPart * mp,
const MR_AffineXf3f * xf,
const MR_Vector3f * voxelSize,
const float * surfaceOffset,
MR_PassBy cb_pass_by,
MR_std_function_bool_from_float * cb )

Generated from function MR::meshToDistanceField. Parameter mp can not be null. It is a single object. Parameter xf can not be null. It is a single object. Parameter voxelSize can not be null. It is a single object. Parameter surfaceOffset has a default argument: 3, pass a null pointer to use it. Parameter cb has a default argument: {}, pass MR_PassBy_DefaultArgument and a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_FloatGrid_Destroy() to free it when you're done using it.

◆ MR_meshToDistanceVdbVolume()

MRC_API MR_expected_MR_VdbVolume_std_string * MR_meshToDistanceVdbVolume ( const MR_MeshPart * mp,
const MR_MeshToVolumeParams * params )

converts mesh (or its part) into a volume filled with signed or unsigned distances to mesh using OpenVDB library; for signed distances the mesh must be closed; *params.outXf is untouched Generated from function MR::meshToDistanceVdbVolume. Parameter mp can not be null. It is a single object. Parameter params is a single object. Parameter params has a default argument: {}, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_VdbVolume_std_string_Destroy() to free it when you're done using it.

◆ MR_meshToLevelSet()

MRC_API MR_FloatGrid * MR_meshToLevelSet ( const MR_MeshPart * mp,
const MR_AffineXf3f * xf,
const MR_Vector3f * voxelSize,
const float * surfaceOffset,
MR_PassBy cb_pass_by,
MR_std_function_bool_from_float * cb )

Generated from function MR::meshToLevelSet. Parameter mp can not be null. It is a single object. Parameter xf can not be null. It is a single object. Parameter voxelSize can not be null. It is a single object. Parameter surfaceOffset has a default argument: 3, pass a null pointer to use it. Parameter cb has a default argument: {}, pass MR_PassBy_DefaultArgument and a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_FloatGrid_Destroy() to free it when you're done using it.

◆ MR_meshToVolume()

MRC_API MR_expected_MR_VdbVolume_std_string * MR_meshToVolume ( const MR_MeshPart * mp,
const MR_MeshToVolumeParams * params )

converts mesh (or its part) into a volume filled with signed or unsigned distances to mesh using OpenVDB library; for signed distances the mesh must be closed; prior to conversion, world space is shifted to ensure that the bounding box of offset mesh is in positive quarter-space, and the shift is written in *params.outXf Generated from function MR::meshToVolume. Parameter mp can not be null. It is a single object. Parameter params is a single object. Parameter params has a default argument: {}, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_VdbVolume_std_string_Destroy() to free it when you're done using it.

◆ MR_MeshToVolumeParams_AssignFromAnother()

MRC_API MR_MeshToVolumeParams * MR_MeshToVolumeParams_AssignFromAnother ( MR_MeshToVolumeParams * _this,
MR_PassBy _other_pass_by,
MR_MeshToVolumeParams * _other )

Generated from a method of class MR::MeshToVolumeParams named operator=. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshToVolumeParams_ConstructFrom()

MRC_API MR_MeshToVolumeParams * MR_MeshToVolumeParams_ConstructFrom ( MR_MeshToVolumeParams_Type type,
float surfaceOffset,
MR_Vector3f voxelSize,
MR_AffineXf3f worldXf,
MR_AffineXf3f * outXf,
MR_PassBy cb_pass_by,
MR_std_function_bool_from_float * cb )

Constructs MR::MeshToVolumeParams elementwise. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshToVolumeParams_Destroy() to free it when you're done using it.

◆ MR_MeshToVolumeParams_ConstructFromAnother()

MRC_API MR_MeshToVolumeParams * MR_MeshToVolumeParams_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_MeshToVolumeParams * _other )

Generated from a constructor of class MR::MeshToVolumeParams. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshToVolumeParams_Destroy() to free it when you're done using it.

◆ MR_MeshToVolumeParams_DefaultConstruct()

MRC_API MR_MeshToVolumeParams * MR_MeshToVolumeParams_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshToVolumeParams_Destroy() to free it when you're done using it.

◆ MR_MeshToVolumeParams_DefaultConstructArray()

MRC_API MR_MeshToVolumeParams * MR_MeshToVolumeParams_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_MeshToVolumeParams_DestroyArray(). Use MR_MeshToVolumeParams_OffsetMutablePtr() and MR_MeshToVolumeParams_OffsetPtr() to access the array elements.

◆ MR_MeshToVolumeParams_Destroy()

MRC_API void MR_MeshToVolumeParams_Destroy ( const MR_MeshToVolumeParams * _this)

Destroys a heap-allocated instance of MR_MeshToVolumeParams. Does nothing if the pointer is null.

◆ MR_MeshToVolumeParams_DestroyArray()

MRC_API void MR_MeshToVolumeParams_DestroyArray ( const MR_MeshToVolumeParams * _this)

Destroys a heap-allocated array of MR_MeshToVolumeParams. Does nothing if the pointer is null.

◆ MR_MeshToVolumeParams_Get_cb()

MRC_API const MR_std_function_bool_from_float * MR_MeshToVolumeParams_Get_cb ( const MR_MeshToVolumeParams * _this)

Returns a pointer to a member variable of class MR::MeshToVolumeParams named cb. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshToVolumeParams_Get_outXf()

MRC_API MR_AffineXf3f *const * MR_MeshToVolumeParams_Get_outXf ( const MR_MeshToVolumeParams * _this)

Returns a pointer to a member variable of class MR::MeshToVolumeParams named outXf. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshToVolumeParams_Get_surfaceOffset()

MRC_API const float * MR_MeshToVolumeParams_Get_surfaceOffset ( const MR_MeshToVolumeParams * _this)

Returns a pointer to a member variable of class MR::MeshToVolumeParams named surfaceOffset. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshToVolumeParams_Get_type()

MRC_API const MR_MeshToVolumeParams_Type * MR_MeshToVolumeParams_Get_type ( const MR_MeshToVolumeParams * _this)

Returns a pointer to a member variable of class MR::MeshToVolumeParams named type. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshToVolumeParams_Get_voxelSize()

MRC_API const MR_Vector3f * MR_MeshToVolumeParams_Get_voxelSize ( const MR_MeshToVolumeParams * _this)

Returns a pointer to a member variable of class MR::MeshToVolumeParams named voxelSize. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshToVolumeParams_Get_worldXf()

MRC_API const MR_AffineXf3f * MR_MeshToVolumeParams_Get_worldXf ( const MR_MeshToVolumeParams * _this)

Returns a pointer to a member variable of class MR::MeshToVolumeParams named worldXf. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshToVolumeParams_GetMutable_cb()

MRC_API MR_std_function_bool_from_float * MR_MeshToVolumeParams_GetMutable_cb ( MR_MeshToVolumeParams * _this)

Returns a mutable pointer to a member variable of class MR::MeshToVolumeParams named cb. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshToVolumeParams_GetMutable_outXf()

MRC_API MR_AffineXf3f ** MR_MeshToVolumeParams_GetMutable_outXf ( MR_MeshToVolumeParams * _this)

Returns a mutable pointer to a member variable of class MR::MeshToVolumeParams named outXf. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshToVolumeParams_GetMutable_surfaceOffset()

MRC_API float * MR_MeshToVolumeParams_GetMutable_surfaceOffset ( MR_MeshToVolumeParams * _this)

Returns a mutable pointer to a member variable of class MR::MeshToVolumeParams named surfaceOffset. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshToVolumeParams_GetMutable_type()

MRC_API MR_MeshToVolumeParams_Type * MR_MeshToVolumeParams_GetMutable_type ( MR_MeshToVolumeParams * _this)

Returns a mutable pointer to a member variable of class MR::MeshToVolumeParams named type. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshToVolumeParams_GetMutable_voxelSize()

MRC_API MR_Vector3f * MR_MeshToVolumeParams_GetMutable_voxelSize ( MR_MeshToVolumeParams * _this)

Returns a mutable pointer to a member variable of class MR::MeshToVolumeParams named voxelSize. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshToVolumeParams_GetMutable_worldXf()

MRC_API MR_AffineXf3f * MR_MeshToVolumeParams_GetMutable_worldXf ( MR_MeshToVolumeParams * _this)

Returns a mutable pointer to a member variable of class MR::MeshToVolumeParams named worldXf. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshToVolumeParams_OffsetMutablePtr()

MRC_API MR_MeshToVolumeParams * MR_MeshToVolumeParams_OffsetMutablePtr ( MR_MeshToVolumeParams * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_MeshToVolumeParams_OffsetPtr()

MRC_API const MR_MeshToVolumeParams * MR_MeshToVolumeParams_OffsetPtr ( const MR_MeshToVolumeParams * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_MeshToVolumeParams_Set_cb()

MRC_API void MR_MeshToVolumeParams_Set_cb ( MR_MeshToVolumeParams * _this,
MR_PassBy value_pass_by,
MR_std_function_bool_from_float * value )

Modifies a member variable of class MR::MeshToVolumeParams named cb. Parameter _this can not be null. It is a single object.

◆ MR_MeshToVolumeParams_Set_outXf()

MRC_API void MR_MeshToVolumeParams_Set_outXf ( MR_MeshToVolumeParams * _this,
MR_AffineXf3f * value )

Modifies a member variable of class MR::MeshToVolumeParams named outXf. Parameter _this can not be null. It is a single object.

◆ MR_MeshToVolumeParams_Set_surfaceOffset()

MRC_API void MR_MeshToVolumeParams_Set_surfaceOffset ( MR_MeshToVolumeParams * _this,
float value )

Modifies a member variable of class MR::MeshToVolumeParams named surfaceOffset. Parameter _this can not be null. It is a single object.

◆ MR_MeshToVolumeParams_Set_type()

MRC_API void MR_MeshToVolumeParams_Set_type ( MR_MeshToVolumeParams * _this,
MR_MeshToVolumeParams_Type value )

Modifies a member variable of class MR::MeshToVolumeParams named type. Parameter _this can not be null. It is a single object.

◆ MR_MeshToVolumeParams_Set_voxelSize()

MRC_API void MR_MeshToVolumeParams_Set_voxelSize ( MR_MeshToVolumeParams * _this,
MR_Vector3f value )

Modifies a member variable of class MR::MeshToVolumeParams named voxelSize. Parameter _this can not be null. It is a single object.

◆ MR_MeshToVolumeParams_Set_worldXf()

MRC_API void MR_MeshToVolumeParams_Set_worldXf ( MR_MeshToVolumeParams * _this,
MR_AffineXf3f value )

Modifies a member variable of class MR::MeshToVolumeParams named worldXf. Parameter _this can not be null. It is a single object.

◆ MR_simpleVolumeToDenseGrid()

MRC_API MR_FloatGrid * MR_simpleVolumeToDenseGrid ( const MR_SimpleVolume * simpleVolume,
const float * background,
MR_PassBy cb_pass_by,
MR_std_function_bool_from_float * cb )

Generated from function MR::simpleVolumeToDenseGrid. Parameter simpleVolume can not be null. It is a single object. Parameter background has a default argument: 0.F, pass a null pointer to use it. Parameter cb has a default argument: {}, pass MR_PassBy_DefaultArgument and a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_FloatGrid_Destroy() to free it when you're done using it.

◆ MR_simpleVolumeToVdbVolume()

MRC_API MR_VdbVolume * MR_simpleVolumeToVdbVolume ( const MR_SimpleVolumeMinMax * simpleVolume,
MR_PassBy cb_pass_by,
MR_std_function_bool_from_float * cb )

Generated from function MR::simpleVolumeToVdbVolume. Parameter simpleVolume can not be null. It is a single object. Parameter cb has a default argument: {}, pass MR_PassBy_DefaultArgument and a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_VdbVolume_Destroy() to free it when you're done using it.

◆ MR_vdbVolumeToSimpleVolume()

MRC_API MR_expected_MR_SimpleVolumeMinMax_std_string * MR_vdbVolumeToSimpleVolume ( const MR_VdbVolume * vdbVolume,
const MR_Box3i * activeBox,
MR_PassBy cb_pass_by,
MR_std_function_bool_from_float * cb )

Generated from function MR::vdbVolumeToSimpleVolume. Parameter vdbVolume can not be null. It is a single object. Parameter activeBox is a single object. Parameter activeBox has a default argument: MR::Box3i(), pass a null pointer to use it. Parameter cb has a default argument: {}, pass MR_PassBy_DefaultArgument and a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_SimpleVolumeMinMax_std_string_Destroy() to free it when you're done using it.

◆ MR_vdbVolumeToSimpleVolumeNorm()

MRC_API MR_expected_MR_SimpleVolumeMinMax_std_string * MR_vdbVolumeToSimpleVolumeNorm ( const MR_VdbVolume * vdbVolume,
const MR_Box3i * activeBox,
const MR_Box1f * sourceScale,
MR_PassBy cb_pass_by,
MR_std_function_bool_from_float * cb )

Makes normalized SimpleVolume from VdbVolume Normalisation consist of scaling values linearly from the source scale to the interval [0;1]

Note
Makes copy of data
Parameters
sourceScaleif specified, defines the initial scale of voxels. If not specified, it is estimated as min. and max. values from the voxels Generated from function MR::vdbVolumeToSimpleVolumeNorm. Parameter vdbVolume can not be null. It is a single object. Parameter activeBox is a single object. Parameter activeBox has a default argument: MR::Box3i(), pass a null pointer to use it. Parameter sourceScale is optional. To keep it empty, pass a null pointer. Parameter sourceScale defaults to empty in C++. Parameter cb has a default argument: {}, pass MR_PassBy_DefaultArgument and a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_SimpleVolumeMinMax_std_string_Destroy() to free it when you're done using it.

◆ MR_vdbVolumeToSimpleVolumeU16()

MRC_API MR_expected_MR_SimpleVolumeMinMaxU16_std_string * MR_vdbVolumeToSimpleVolumeU16 ( const MR_VdbVolume * vdbVolume,
const MR_Box3i * activeBox,
const MR_Box1f * sourceScale,
MR_PassBy cb_pass_by,
MR_std_function_bool_from_float * cb )

Makes SimpleVolumeU16 from VdbVolume Values are linearly scaled from the source scale to the range corresponding to uint16_t

Note
Makes copy of data
Parameters
sourceScaleif specified, defines the initial scale of voxels. If not specified, it is estimated as min. and max. values from the voxels Generated from function MR::vdbVolumeToSimpleVolumeU16. Parameter vdbVolume can not be null. It is a single object. Parameter activeBox is a single object. Parameter activeBox has a default argument: MR::Box3i(), pass a null pointer to use it. Parameter sourceScale is optional. To keep it empty, pass a null pointer. Parameter sourceScale defaults to empty in C++. Parameter cb has a default argument: {}, pass MR_PassBy_DefaultArgument and a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_SimpleVolumeMinMaxU16_std_string_Destroy() to free it when you're done using it.