#include <MRMeshC/MRMesh.h>
#include <MRMeshC/MRCube.h>
#include <MRMeshC/MRVector3.h>
#include <MRMeshC/MRBox.h>
#include <MRMeshC/MRAffineXf.h>
#include <MRMeshC/MRMeshSave.h>
#include <MRMeshC/MROffset.h>
#include <MRMeshC/MRString.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#define APPROX_VOXEL_COUNT 10000000.f
int main( int argc, char* argv[] )
{
int rc = EXIT_FAILURE;
.region = NULL,
};
if ( errorString )
{
fprintf( stderr,
"Failed to perform offset: %s",
mrStringData( errorString ) );
goto out;
}
if ( errorString )
{
fprintf( stderr,
"Failed to save inputMesh: %s",
mrStringData( errorString ) );
goto out_outputMesh;
}
rc = EXIT_SUCCESS;
out_outputMesh:
out:
return rc;
}
MRMESHC_API MRAffineXf3f mrAffineXf3fNew(void)
MRMESHC_API float mrBox3fDiagonal(const MRBox3f *box)
MR_EXTERN_C_BEGIN MRMESHC_API MRMesh * mrMakeCube(const MRVector3f *size, const MRVector3f *base)
typedefMR_EXTERN_C_BEGIN struct MRString MRString
MRMESHC_API MRBox3f mrMeshComputeBoundingBox(const MRMesh *mesh, const MRAffineXf3f *toWorld)
MRMESHC_API void mrMeshFree(MRMesh *mesh)
MRMESHC_API MROffsetParameters mrOffsetParametersNew(void)
MRMESHC_API float mrSuggestVoxelSize(MRMeshPart mp, float approxNumVoxels)
MRMESHC_API MRSaveSettings mrSaveSettingsNew(void)
MRMESHC_API void mrStringFree(MRString *str)
MR_EXTERN_C_BEGIN MRMESHC_API const char * mrStringData(const MRString *str)
MRMESHC_API MRVector3f mrVector3fDiagonal(float a)
MRMESHC_API void mrMeshSaveToAnySupportedFormat(const MRMesh *mesh, const char *file, MRString **errorStr)
MRMESHC_API MRMesh * mrOffsetMesh(MRMeshPart mp, float offset, const MROffsetParameters *params, MRString **errorString)
Source mesh