MeshLib C# Docs
Loading...
Searching...
No Matches
MR.FillingSurface.TPMS Class Reference

Public Types

enum  Type
 
enum  Type : int
 Supported types of TPMS (Triply Periodic Minimal Surfaces)
 

Static Public Member Functions

static unsafe MR.Std.Vector_StdString getTypeNames ()
 Returns the names for each type of filling Generated from function MR.FillingSurface.TPMS.getTypeNames.
 
static unsafe MR.Std.Vector_StdString getTypeTooltips ()
 Returns the tooltips for each type of filling Generated from function MR.FillingSurface.TPMS.getTypeTooltips.
 
static bool isThick (MR.FillingSurface.TPMS.Type type)
 Returns true if the type is thick Generated from function MR.FillingSurface.TPMS.isThick.
 
static unsafe MR.FunctionVolume buildVolume (in MR.Vector3f size, MR.FillingSurface.TPMS.Const_VolumeParams params_)
 Construct TPMS using implicit function (https://www.researchgate.net/publication/350658078_Computational_method_and_program_for_generating_a_porous_scaffold_based_on_implicit_surfaces)
 
static unsafe MR.Mesh build (in MR.Vector3f size, MR.FillingSurface.TPMS.Const_MeshParams params_, MR.Std._ByValue_Function_BoolFuncFromFloat? cb=null)
 Constructs TPMS level-set and then convert it to mesh Generated from function MR.FillingSurface.TPMS.build. Parameter cb defaults to {}.
 
static unsafe MR.Mesh fill (MR.Const_Mesh mesh, MR.FillingSurface.TPMS.Const_MeshParams params_, MR.Std._ByValue_Function_BoolFuncFromFloat? cb=null)
 Constructs TPMS-filling for the given mesh Generated from function MR.FillingSurface.TPMS.fill. Parameter cb defaults to {}.
 
static unsafe ulong getNumberOfVoxels (MR.Const_Mesh mesh, float frequency, float resolution)
 Returns number of voxels that would be used to perform fillWithTPMS Generated from function MR.FillingSurface.TPMS.getNumberOfVoxels.
 
static unsafe ulong getNumberOfVoxels (in MR.Vector3f size, float frequency, float resolution)
 Returns number of voxels that would be used to perform buildTPMS or buildTPMSVolume Generated from function MR.FillingSurface.TPMS.getNumberOfVoxels.
 
static float estimateIso (MR.FillingSurface.TPMS.Type type, float targetDensity)
 Returns approximated ISO value corresponding to the given density.
 
static float estimateDensity (MR.FillingSurface.TPMS.Type type, float targetIso)
 Returns approximate density corresponding to the given ISO value.
 
static float getMinimalResolution (MR.FillingSurface.TPMS.Type type, float iso)
 Returns minimal reasonable resolution for given parameters Generated from function MR.FillingSurface.TPMS.getMinimalResolution.
 

Member Function Documentation

◆ buildVolume()

static unsafe MR.FunctionVolume MR.FillingSurface.TPMS.buildVolume ( in MR.Vector3f size,
MR.FillingSurface.TPMS.Const_VolumeParams params_ )
inlinestatic

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.

◆ estimateDensity()

static float MR.FillingSurface.TPMS.estimateDensity ( MR.FillingSurface.TPMS.Type type,
float targetIso )
inlinestatic

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.

◆ estimateIso()

static float MR.FillingSurface.TPMS.estimateIso ( MR.FillingSurface.TPMS.Type type,
float targetDensity )
inlinestatic

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.

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