#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define abs(a) a >= 0 ? a : -a;
{
int rc = EXIT_FAILURE;
float maxWeight = 0.0f;
{
if ( weight > maxWeight )
{
maxWeight = weight;
}
}
if ( !resMesh )
{
goto fail_shell;
}
{
goto fail_save;
}
rc = EXIT_SUCCESS;
fail_save:
fail_shell:
return rc;
}
struct MR_MeshPart MR_MeshPart
struct MR_VertScalars MR_VertScalars
struct MR_std_vector_MR_Vector3f MR_std_vector_MR_Vector3f
struct MR_DistanceFromWeightedPointsParams MR_DistanceFromWeightedPointsParams
MRC_API void MR_DistanceFromWeightedPointsParams_Set_maxWeight(MR_DistanceFromWeightedPointsParams *_this, float value)
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 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 MR_uint64_t MR_MeshTopology_vertSize(const MR_MeshTopology *_this)
MRC_API void MR_Mesh_Destroy(const MR_Mesh *_this)
MRC_API const MR_VertCoords * MR_Mesh_Get_points(const MR_Mesh *_this)
MRC_API const MR_MeshTopology * MR_Mesh_Get_topology(const MR_Mesh *_this)
MRC_API float MR_suggestVoxelSize(const MR_MeshPart *mp, float approxNumVoxels)
MRC_API MR_Mesh * MR_makeTorus(const float *primaryRadius, const float *secondaryRadius, const int *primaryResolution, const int *secondaryResolution, MR_std_vector_MR_Vector3f *points)
MRC_API float * MR_VertScalars_data(MR_VertScalars *_this)
MRC_API MR_VertScalars * MR_VertScalars_Construct_1_uint64_t(MR_uint64_t size)
MRC_API void MR_VertScalars_Destroy(const MR_VertScalars *_this)
MRC_API const MR_std_vector_MR_Vector3f * MR_VertCoords_Get_vec_(const MR_VertCoords *_this)
MRC_API MR_expected_MR_Mesh_std_string * MR_WeightedShell_meshShell_3_MR_VertScalars(const MR_Mesh *mesh, const MR_VertScalars *vertWeights, const MR_WeightedShell_ParametersMetric *params)
MRC_API void MR_WeightedShell_ParametersBase_Set_voxelSize(MR_WeightedShell_ParametersBase *_this, float value)
struct MR_WeightedShell_ParametersMetric MR_WeightedShell_ParametersMetric
MRC_API void MR_WeightedShell_ParametersMetric_Destroy(const MR_WeightedShell_ParametersMetric *_this)
MRC_API void MR_WeightedShell_ParametersBase_Set_offset(MR_WeightedShell_ParametersBase *_this, float value)
MRC_API MR_WeightedShell_ParametersMetric * MR_WeightedShell_ParametersMetric_DefaultConstruct(void)
struct MR_WeightedShell_ParametersBase MR_WeightedShell_ParametersBase
MRC_API MR_WeightedShell_ParametersBase * MR_WeightedShell_ParametersMetric_MutableUpcastTo_MR_WeightedShell_ParametersBase(MR_WeightedShell_ParametersMetric *object)
MRC_API MR_DistanceFromWeightedPointsParams * MR_WeightedShell_ParametersMetric_GetMutable_dist(MR_WeightedShell_ParametersMetric *_this)
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)
MRC_API const MR_Vector3f * MR_std_vector_MR_Vector3f_At(const MR_std_vector_MR_Vector3f *_this, size_t i)