MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.FillingSurface.TPMS Class Reference

Classes

class  ConstMeshParams
class  ConstVolumeParams
class  MeshParams
class  Type
class  VolumeParams

Static Public Member Functions

Mesh build (ConstVector3f size, FillingSurface.TPMS.ConstMeshParams params, Const_func_bool_from_float cb='{}')
FunctionVolume buildVolume (ConstVector3f size, FillingSurface.TPMS.ConstVolumeParams params)
float estimateDensity (FillingSurface.TPMS.Type type, float targetIso)
float estimateIso (FillingSurface.TPMS.Type type, float targetDensity)
Mesh fill (ConstMesh mesh, FillingSurface.TPMS.ConstMeshParams params, Const_func_bool_from_float cb='{}')
float getMinimalResolution (FillingSurface.TPMS.Type type, float iso)
int getNumberOfVoxels (ConstMesh mesh, float frequency, float resolution)
int getNumberOfVoxels (ConstVector3f size, float frequency, float resolution)
std_vector_std_string getTypeNames ()
std_vector_std_string getTypeTooltips ()
bool isThick (FillingSurface.TPMS.Type type)

Detailed Description

This is a namespace.

Member Function Documentation

◆ build()

Mesh mrmeshpy.FillingSurface.TPMS.build ( ConstVector3f size,
FillingSurface.TPMS.ConstMeshParams params,
Const_func_bool_from_float cb = '{}' )
static
Constructs TPMS level-set and then convert it to mesh

◆ buildVolume()

FunctionVolume mrmeshpy.FillingSurface.TPMS.buildVolume ( ConstVector3f size,
FillingSurface.TPMS.ConstVolumeParams 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)
@param size Size of the cube with the surface
@return Distance-volume starting at (0, 0, 0) and having specified @p size

◆ estimateDensity()

float mrmeshpy.FillingSurface.TPMS.estimateDensity ( FillingSurface.TPMS.Type type,
float targetIso )
static
Returns approximate density corresponding to the given ISO value
@param targetIso value in [-1; 1]
@return Value in [0; 1]

◆ estimateIso()

float mrmeshpy.FillingSurface.TPMS.estimateIso ( FillingSurface.TPMS.Type type,
float targetDensity )
static
Returns approximated ISO value corresponding to the given density
@param targetDensity value in [0; 1]
@return Value in [-1; 1]

◆ fill()

Mesh mrmeshpy.FillingSurface.TPMS.fill ( ConstMesh mesh,
FillingSurface.TPMS.ConstMeshParams params,
Const_func_bool_from_float cb = '{}' )
static
Constructs TPMS-filling for the given @p mesh

◆ getMinimalResolution()

float mrmeshpy.FillingSurface.TPMS.getMinimalResolution ( FillingSurface.TPMS.Type type,
float iso )
static
Returns minimal reasonable resolution for given parameters

◆ getNumberOfVoxels() [1/2]

int mrmeshpy.FillingSurface.TPMS.getNumberOfVoxels ( ConstMesh mesh,
float frequency,
float resolution )
static
Returns number of voxels that would be used to perform \\ref fill

◆ getNumberOfVoxels() [2/2]

int mrmeshpy.FillingSurface.TPMS.getNumberOfVoxels ( ConstVector3f size,
float frequency,
float resolution )
static
Returns number of voxels that would be used to perform \\ref build or \\ref buildVolume

◆ getTypeNames()

std_vector_std_string mrmeshpy.FillingSurface.TPMS.getTypeNames ( )
static
Returns the names for each type of filling

◆ getTypeTooltips()

std_vector_std_string mrmeshpy.FillingSurface.TPMS.getTypeTooltips ( )
static
Returns the tooltips for each type of filling

◆ isThick()

bool mrmeshpy.FillingSurface.TPMS.isThick ( FillingSurface.TPMS.Type type)
static
Returns true if the \\p type is thick

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