#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef max
#undef max
#endif
#define max(a,b) a > b ? a : b
{
int rc = EXIT_FAILURE;
if ( !pc )
{
goto fail_load;
}
float sigma = max( voxelSize, avgRadius );
if ( !mesh )
{
goto fail_fuse;
}
{
goto fail_save;
}
rc = EXIT_SUCCESS;
fail_save:
fail_fuse:
fail_load:
return rc;
}
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
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 float MR_findAvgPointsRadius(const MR_PointCloud *pointCloud, int avgPoints, const int *samples)
MRC_API MR_Box3f MR_PointCloud_computeBoundingBox_1(const MR_PointCloud *_this, const MR_AffineXf3f *toWorld)
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 MR_PointsToMeshParameters * MR_PointsToMeshParameters_DefaultConstruct(void)
MRC_API void MR_PointsToMeshParameters_Set_sigma(MR_PointsToMeshParameters *_this, float value)
MRC_API void MR_PointsToMeshParameters_Set_voxelSize(MR_PointsToMeshParameters *_this, float value)
MRC_API void MR_PointsToMeshParameters_Set_minWeight(MR_PointsToMeshParameters *_this, float value)
MRC_API MR_expected_MR_Mesh_std_string * MR_pointsToMeshFusion(const MR_PointCloud *cloud, const MR_PointsToMeshParameters *params)
MRC_API void MR_PointsToMeshParameters_Destroy(const MR_PointsToMeshParameters *_this)
struct MR_PointsToMeshParameters MR_PointsToMeshParameters
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_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 const char * MR_std_string_Data(const MR_std_string *_this)