#include <stdio.h>
#include <stdlib.h>
#include <string.h>
{
int rc = EXIT_FAILURE;
if ( !pointCloud )
{
goto fail_load;
}
if ( !mesh )
{
fprintf( stderr, "Triangulation canceled" );
goto fail_triangulation;
}
{
goto fail_save;
}
rc = EXIT_SUCCESS;
fail_save:
fail_triangulation:
fail_load:
return rc;
}
struct MR_std_optional_MR_Mesh MR_std_optional_MR_Mesh
struct MR_expected_void_std_string MR_expected_void_std_string
struct MR_expected_MR_PointCloud_std_string MR_expected_MR_PointCloud_std_string
struct MR_PointCloud MR_PointCloud
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 MR_std_optional_MR_Mesh * MR_triangulatePointCloud(const MR_PointCloud *pointCloud, const MR_TriangulationParameters *params, const MR_std_function_bool_from_float *progressCb)
MRC_API MR_expected_MR_PointCloud_std_string * MR_PointsLoad_fromAnySupportedFormat_2(const char *file, const char *file_end, const MR_PointsLoadSettings *settings)
MRC_API const MR_std_string * MR_expected_MR_PointCloud_std_string_GetError(const MR_expected_MR_PointCloud_std_string *_this)
MRC_API MR_PointCloud * MR_expected_MR_PointCloud_std_string_GetMutableValue(MR_expected_MR_PointCloud_std_string *_this)
MRC_API void MR_expected_MR_PointCloud_std_string_Destroy(const MR_expected_MR_PointCloud_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 void MR_std_optional_MR_Mesh_Destroy(const MR_std_optional_MR_Mesh *_this)
MRC_API MR_Mesh * MR_std_optional_MR_Mesh_MutableValue(MR_std_optional_MR_Mesh *_this)
MRC_API const char * MR_std_string_Data(const MR_std_string *_this)