|
Mesh | build (TPMS.Type type, Vector3f size, float frequency, float resolution, float iso, func_bool_from_float cb='{}') |
|
FunctionVolume | buildVolume (TPMS.Type type, Vector3f size, float frequency, float resolution) |
|
float | estimateDensity (TPMS.Type type, float targetIso) |
|
float | estimateIso (TPMS.Type type, float targetDensity) |
|
Mesh | fill (TPMS.Type type, Mesh mesh, float frequency, float resolution, float iso, func_bool_from_float cb='{}') |
|
int | getNumberOfVoxels (Mesh mesh, float frequency, float resolution) |
|
int | getNumberOfVoxels (Vector3f size, float frequency, float resolution) |
|
std_vector_std_string | getTypeNames () |
|
◆ build()
Constructs TPMS level-set and then convert it to mesh
◆ buildVolume()
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 type Type of the surface
@param size Size of the cube with the surface
@param frequency Frequency of oscillations (determines size of the "cells" in the "grid")
@param resolution Ratio `n / T`, between the number of voxels and period of oscillations
@return Distance-volume starting at (0, 0, 0) and having specified @p size
◆ estimateDensity()
float mrmeshpy.TPMS.estimateDensity |
( |
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.TPMS.estimateIso |
( |
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()
Constructs TPMS-filling for the given @p mesh
◆ getNumberOfVoxels() [1/2]
int mrmeshpy.TPMS.getNumberOfVoxels |
( |
Mesh | mesh, |
|
|
float | frequency, |
|
|
float | resolution ) |
|
static |
Returns number of voxels that would be used to perform \\ref fillWithTPMS
◆ getNumberOfVoxels() [2/2]
int mrmeshpy.TPMS.getNumberOfVoxels |
( |
Vector3f | size, |
|
|
float | frequency, |
|
|
float | resolution ) |
|
static |
Returns number of voxels that would be used to perform \\ref buildTPMS or \\ref buildTPMSVolume
◆ getTypeNames()
The documentation for this class was generated from the following file: