MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.fillingsurface.tpms.Functions Class Reference

Static Public Member Functions

static meshlib.std_vector_std_string getTypeNames ()
static meshlib.std_vector_std_string getTypeTooltips ()
static boolean isThick (meshlib.fillingsurface.tpms.Type type)
static meshlib.FunctionVolume buildVolume (meshlib.Vector3f size, meshlib.fillingsurface.tpms.VolumeParams params)
static meshlib.Mesh build (meshlib.Vector3f size, meshlib.fillingsurface.tpms.MeshParams params, meshlib.std_function_bool_from_float cb)
static meshlib.Mesh fill (meshlib.Mesh mesh, meshlib.fillingsurface.tpms.MeshParams params, meshlib.std_function_bool_from_float cb)
static long getNumberOfVoxels (meshlib.Mesh mesh, float frequency, float resolution)
static long getNumberOfVoxels (meshlib.Vector3f size, float frequency, float resolution)
static float estimateIso (meshlib.fillingsurface.tpms.Type type, float targetDensity)
static float estimateDensity (meshlib.fillingsurface.tpms.Type type, float targetIso)
static float getMinimalResolution (meshlib.fillingsurface.tpms.Type type, float iso)

Detailed Description

The free functions of this namespace.

Member Function Documentation

◆ build()

meshlib.Mesh meshlib.fillingsurface.tpms.Functions.build ( meshlib.Vector3f size,
meshlib.fillingsurface.tpms.MeshParams params,
meshlib.std_function_bool_from_float cb )
static

Constructs TPMS level-set and then convert it to mesh Generated from function MR::FillingSurface::TPMS::build.

Calls MR_FillingSurface_TPMS_build(). The C++ function returns expected<MR::Mesh, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ buildVolume()

meshlib.FunctionVolume meshlib.fillingsurface.tpms.Functions.buildVolume ( meshlib.Vector3f size,
meshlib.fillingsurface.tpms.VolumeParams params )
static

Construct TPMS using implicit function (https://www.researchgate.net/publication/350658078_Computational_method_and_program_for_generating_a_porous_scaffold_based_on_implicit_surfaces)

Parameters
sizeSize of the cube with the surface
Returns
Distance-volume starting at (0, 0, 0) and having specified size Generated from function MR::FillingSurface::TPMS::buildVolume.

Calls MR_FillingSurface_TPMS_buildVolume().

◆ estimateDensity()

float meshlib.fillingsurface.tpms.Functions.estimateDensity ( meshlib.fillingsurface.tpms.Type type,
float targetIso )
static

Returns approximate density corresponding to the given ISO value

Parameters
targetIsovalue in [-1; 1]
Returns
Value in [0; 1] Generated from function MR::FillingSurface::TPMS::estimateDensity.

Calls MR_FillingSurface_TPMS_estimateDensity().

◆ estimateIso()

float meshlib.fillingsurface.tpms.Functions.estimateIso ( meshlib.fillingsurface.tpms.Type type,
float targetDensity )
static

Returns approximated ISO value corresponding to the given density

Parameters
targetDensityvalue in [0; 1]
Returns
Value in [-1; 1] Generated from function MR::FillingSurface::TPMS::estimateIso.

Calls MR_FillingSurface_TPMS_estimateIso().

◆ fill()

meshlib.Mesh meshlib.fillingsurface.tpms.Functions.fill ( meshlib.Mesh mesh,
meshlib.fillingsurface.tpms.MeshParams params,
meshlib.std_function_bool_from_float cb )
static

Constructs TPMS-filling for the given mesh Generated from function MR::FillingSurface::TPMS::fill.

Calls MR_FillingSurface_TPMS_fill(). The C++ function returns expected<MR::Mesh, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ getMinimalResolution()

float meshlib.fillingsurface.tpms.Functions.getMinimalResolution ( meshlib.fillingsurface.tpms.Type type,
float iso )
static

Returns minimal reasonable resolution for given parameters Generated from function MR::FillingSurface::TPMS::getMinimalResolution.

Calls MR_FillingSurface_TPMS_getMinimalResolution().

◆ getNumberOfVoxels() [1/2]

long meshlib.fillingsurface.tpms.Functions.getNumberOfVoxels ( meshlib.Mesh mesh,
float frequency,
float resolution )
static

Returns number of voxels that would be used to perform fill Generated from function MR::FillingSurface::TPMS::getNumberOfVoxels.

Calls MR_FillingSurface_TPMS_getNumberOfVoxels_MR_Mesh().

◆ getNumberOfVoxels() [2/2]

long meshlib.fillingsurface.tpms.Functions.getNumberOfVoxels ( meshlib.Vector3f size,
float frequency,
float resolution )
static

Returns number of voxels that would be used to perform build or buildVolume Generated from function MR::FillingSurface::TPMS::getNumberOfVoxels.

Calls MR_FillingSurface_TPMS_getNumberOfVoxels_MR_Vector3f().

◆ getTypeNames()

meshlib.std_vector_std_string meshlib.fillingsurface.tpms.Functions.getTypeNames ( )
static

Returns the names for each type of filling Generated from function MR::FillingSurface::TPMS::getTypeNames.

Calls MR_FillingSurface_TPMS_getTypeNames().

◆ getTypeTooltips()

meshlib.std_vector_std_string meshlib.fillingsurface.tpms.Functions.getTypeTooltips ( )
static

Returns the tooltips for each type of filling Generated from function MR::FillingSurface::TPMS::getTypeTooltips.

Calls MR_FillingSurface_TPMS_getTypeTooltips().

◆ isThick()

boolean meshlib.fillingsurface.tpms.Functions.isThick ( meshlib.fillingsurface.tpms.Type type)
static

Returns true if the type is thick Generated from function MR::FillingSurface::TPMS::isThick.

Calls MR_FillingSurface_TPMS_isThick().


The documentation for this class was generated from the following file: