#include <MRCMisc/common.h>
#include <MRCMisc/exports.h>
#include <stdint.h>
Go to the source code of this file.
|
MRC_API MR_std_vector_std_string * | MR_TPMS_getTypeNames (void) |
|
MRC_API MR_FunctionVolume * | MR_TPMS_buildVolume (MR_TPMS_Type type, const MR_Vector3f *size, float frequency, float resolution) |
|
MRC_API MR_expected_MR_Mesh_std_string * | MR_TPMS_build (MR_TPMS_Type type, const MR_Vector3f *size, float frequency, float resolution, float iso, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb) |
|
MRC_API MR_expected_MR_Mesh_std_string * | MR_TPMS_fill (MR_TPMS_Type type, const MR_Mesh *mesh, float frequency, float resolution, float iso, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb) |
|
MRC_API MR_uint64_t | MR_TPMS_getNumberOfVoxels_MR_Mesh (const MR_Mesh *mesh, float frequency, float resolution) |
|
MRC_API MR_uint64_t | MR_TPMS_getNumberOfVoxels_MR_Vector3f (const MR_Vector3f *size, float frequency, float resolution) |
|
MRC_API float | MR_TPMS_estimateIso (MR_TPMS_Type type, float targetDensity) |
|
MRC_API float | MR_TPMS_estimateDensity (MR_TPMS_Type type, float targetIso) |
|
◆ MR_expected_MR_Mesh_std_string
◆ MR_FunctionVolume
◆ MR_Mesh
◆ MR_std_function_bool_from_float
◆ MR_std_vector_std_string
◆ MR_TPMS_Type
Supported types of TPMS (Triply Periodic Minimal Surfaces)
◆ MR_Vector3f
typedef struct MR_Vector3f MR_Vector3f |
◆ anonymous enum
Enumerator |
---|
MR_TPMS_Type_SchwartzP | |
MR_TPMS_Type_DoubleSchwartzP | |
MR_TPMS_Type_Gyroid | |
MR_TPMS_Type_DoubleGyroid | |
MR_TPMS_Type_Count | |
◆ MR_TPMS_build()
Constructs TPMS level-set and then convert it to mesh Generated from function MR::TPMS::build
. Parameter size
can not be null. It is a single object. Parameter cb
has a default argument: {}
, pass MR_PassBy_DefaultArgument
and a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_Mesh_std_string_Destroy()
to free it when you're done using it.
◆ MR_TPMS_buildVolume()
◆ MR_TPMS_estimateDensity()
Returns approximate density corresponding to the given ISO value
- Parameters
-
targetIso | value in [-1; 1] |
- Returns
- Value in [0; 1] Generated from function
MR::TPMS::estimateDensity
.
◆ MR_TPMS_estimateIso()
Returns approximated ISO value corresponding to the given density
- Parameters
-
targetDensity | value in [0; 1] |
- Returns
- Value in [-1; 1] Generated from function
MR::TPMS::estimateIso
.
◆ MR_TPMS_fill()
Constructs TPMS-filling for the given mesh
Generated from function MR::TPMS::fill
. Parameter mesh
can not be null. It is a single object. Parameter cb
has a default argument: {}
, pass MR_PassBy_DefaultArgument
and a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_Mesh_std_string_Destroy()
to free it when you're done using it.
◆ MR_TPMS_getNumberOfVoxels_MR_Mesh()
Returns number of voxels that would be used to perform fillWithTPMS Generated from function MR::TPMS::getNumberOfVoxels
. Parameter mesh
can not be null. It is a single object.
◆ MR_TPMS_getNumberOfVoxels_MR_Vector3f()
Returns number of voxels that would be used to perform buildTPMS or buildTPMSVolume Generated from function MR::TPMS::getNumberOfVoxels
. Parameter size
can not be null. It is a single object.
◆ MR_TPMS_getTypeNames()