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

Classes

class  _InOptConst_MeshParams
 This is used for optional parameters of class MeshParams with default arguments. This is only used const parameters. For non-const ones we have _InOptMut_MeshParams. Usage:
 
class  _InOptConst_VolumeParams
 This is used for optional parameters of class VolumeParams with default arguments. This is only used const parameters. For non-const ones we have _InOptMut_VolumeParams. Usage:
 
class  _InOptMut_MeshParams
 This is used for optional parameters of class MeshParams with default arguments. This is only used mutable parameters. For const ones we have _InOptConst_MeshParams. Usage:
 
class  _InOptMut_VolumeParams
 This is used for optional parameters of class VolumeParams with default arguments. This is only used mutable parameters. For const ones we have _InOptConst_VolumeParams. Usage:
 
class  Const_MeshParams
 Generated from class MR.FillingSurface.TPMS.MeshParams. Base classes: Direct: (non-virtual) MR.FillingSurface.TPMS.VolumeParams This is the const half of the class.
 
class  Const_VolumeParams
 Generated from class MR.FillingSurface.TPMS.VolumeParams. Derived classes: Direct: (non-virtual) MR.FillingSurface.TPMS.MeshParams This is the const half of the class.
 
class  MeshParams
 Generated from class MR.FillingSurface.TPMS.MeshParams. Base classes: Direct: (non-virtual) MR.FillingSurface.TPMS.VolumeParams This is the non-const half of the class. More...
 
class  VolumeParams
 Generated from class MR.FillingSurface.TPMS.VolumeParams. Derived classes: Direct: (non-virtual) MR.FillingSurface.TPMS.MeshParams This is the non-const half of the class. More...
 

Public Types

enum  Type : int {
  SchwartzP = 0 , ThickSchwartzP = 1 , DoubleGyroid = 2 , ThickGyroid = 3 ,
  Count = 4
}
 Supported types of TPMS (Triply Periodic Minimal Surfaces) More...
 

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 Enumeration Documentation

◆ Type

Supported types of TPMS (Triply Periodic Minimal Surfaces)

Enumerator
SchwartzP 
ThickSchwartzP 
DoubleGyroid 
ThickGyroid 
Count 

Member Function Documentation

◆ build()

static unsafe MR.Mesh MR.FillingSurface.TPMS.build ( in MR.Vector3f size,
MR.FillingSurface.TPMS.Const_MeshParams params_,
MR.Std._ByValue_Function_BoolFuncFromFloat? cb = null )
inlinestatic

Constructs TPMS level-set and then convert it to mesh Generated from function MR.FillingSurface.TPMS.build. Parameter cb defaults to {}.

◆ 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.

◆ fill()

static unsafe MR.Mesh MR.FillingSurface.TPMS.fill ( MR.Const_Mesh mesh,
MR.FillingSurface.TPMS.Const_MeshParams params_,
MR.Std._ByValue_Function_BoolFuncFromFloat? cb = null )
inlinestatic

Constructs TPMS-filling for the given mesh Generated from function MR.FillingSurface.TPMS.fill. Parameter cb defaults to {}.

◆ getMinimalResolution()

static float MR.FillingSurface.TPMS.getMinimalResolution ( MR.FillingSurface.TPMS.Type type,
float iso )
inlinestatic

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

◆ getNumberOfVoxels() [1/2]

static unsafe ulong MR.FillingSurface.TPMS.getNumberOfVoxels ( in MR.Vector3f size,
float frequency,
float resolution )
inlinestatic

Returns number of voxels that would be used to perform buildTPMS or buildTPMSVolume Generated from function MR.FillingSurface.TPMS.getNumberOfVoxels.

◆ getNumberOfVoxels() [2/2]

static unsafe ulong MR.FillingSurface.TPMS.getNumberOfVoxels ( MR.Const_Mesh mesh,
float frequency,
float resolution )
inlinestatic

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

◆ getTypeNames()

static unsafe MR.Std.Vector_StdString MR.FillingSurface.TPMS.getTypeNames ( )
inlinestatic

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

◆ getTypeTooltips()

static unsafe MR.Std.Vector_StdString MR.FillingSurface.TPMS.getTypeTooltips ( )
inlinestatic

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

◆ isThick()

static bool MR.FillingSurface.TPMS.isThick ( MR.FillingSurface.TPMS.Type type)
inlinestatic

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


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