#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#define APPROX_VOXEL_COUNT 10000000.f
{
int rc = EXIT_FAILURE;
if ( !outputMesh )
{
goto fail_offset;
}
{
goto fail_save;
}
rc = EXIT_SUCCESS;
fail_save:
fail_offset:
return rc;
}
struct MR_MeshPart MR_MeshPart
MRC_API float MR_Box3f_diagonal(const MR_Box3f *_this)
struct MR_expected_void_std_string MR_expected_void_std_string
struct MR_expected_MR_Mesh_std_string MR_expected_MR_Mesh_std_string
MRC_API MR_Mesh * MR_makeCube(const MR_Vector3f *size, const MR_Vector3f *base)
MRC_API void MR_MeshPart_Destroy(const MR_MeshPart *_this)
MRC_API MR_MeshPart * MR_MeshPart_Construct(const MR_Mesh *m, const MR_FaceBitSet *bs)
MRC_API MR_expected_void_std_string * MR_MeshSave_toAnySupportedFormat_3(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings)
MRC_API void MR_Mesh_Destroy(const MR_Mesh *_this)
MRC_API MR_Box3f MR_Mesh_computeBoundingBox_1(const MR_Mesh *_this, const MR_AffineXf3f *toWorld)
MRC_API MR_BaseShellParameters * MR_OffsetParameters_MutableUpcastTo_MR_BaseShellParameters(MR_OffsetParameters *object)
MRC_API MR_expected_MR_Mesh_std_string * MR_offsetMesh(const MR_MeshPart *mp, float offset, const MR_OffsetParameters *params)
MRC_API void MR_BaseShellParameters_Set_voxelSize(MR_BaseShellParameters *_this, float value)
MRC_API void MR_OffsetParameters_Destroy(const MR_OffsetParameters *_this)
MRC_API MR_OffsetParameters * MR_OffsetParameters_DefaultConstruct(void)
MRC_API float MR_suggestVoxelSize(const MR_MeshPart *mp, float approxNumVoxels)
struct MR_OffsetParameters MR_OffsetParameters
MRC_API MR_Vector3f MR_Vector3f_diagonal(float a)
MRC_API MR_Mesh * MR_expected_MR_Mesh_std_string_GetMutableValue(MR_expected_MR_Mesh_std_string *_this)
MRC_API const MR_std_string * MR_expected_MR_Mesh_std_string_GetError(const MR_expected_MR_Mesh_std_string *_this)
MRC_API void MR_expected_MR_Mesh_std_string_Destroy(const MR_expected_MR_Mesh_std_string *_this)
MRC_API const MR_std_string * MR_expected_void_std_string_GetError(const MR_expected_void_std_string *_this)
MRC_API void MR_expected_void_std_string_Destroy(const MR_expected_void_std_string *_this)
MRC_API const char * MR_std_string_Data(const MR_std_string *_this)
Source mesh