MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::filling_surface::tpms Namespace Reference

Classes

struct  MeshParams
struct  Type
struct  VolumeParams

Functions

auto get_type_names () -> meshlib::Owned< meshlib::std_vector_std_string >
auto get_type_tooltips () -> meshlib::Owned< meshlib::std_vector_std_string >
auto is_thick (type:meshlib::filling_surface::tpms::Type) -> bool
auto build_volume (size:&meshlib::Vector3f, params:&meshlib::filling_surface::tpms::VolumeParams) -> meshlib::Owned< meshlib::FunctionVolume >
auto build (size:&meshlib::Vector3f, params:&meshlib::filling_surface::tpms::MeshParams, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto fill (mesh:&meshlib::Mesh, params:&meshlib::filling_surface::tpms::MeshParams, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto get_number_of_voxels_mr_mesh (mesh:&meshlib::Mesh, frequency:f32, resolution:f32) -> usize
auto get_number_of_voxels_mr_vector3f (size:&meshlib::Vector3f, frequency:f32, resolution:f32) -> usize
auto estimate_iso (type:meshlib::filling_surface::tpms::Type, targetDensity:f32) -> f32
auto estimate_density (type:meshlib::filling_surface::tpms::Type, targetIso:f32) -> f32
auto get_minimal_resolution (type:meshlib::filling_surface::tpms::Type, iso:f32) -> f32

Function Documentation

◆ build()

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

Calls MR_FillingSurface_TPMS_build().

◆ build_volume()

auto meshlib::filling_surface::tpms::build_volume ( size:&meshlib::Vector3f ,
params:&meshlib::filling_surface::tpms::VolumeParams  ) -> meshlib::Owned< meshlib::FunctionVolume >

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().

◆ estimate_density()

auto meshlib::filling_surface::tpms::estimate_density ( type:meshlib::filling_surface::tpms::Type ,
targetIso:f32  ) -> f32

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().

◆ estimate_iso()

auto meshlib::filling_surface::tpms::estimate_iso ( type:meshlib::filling_surface::tpms::Type ,
targetDensity:f32  ) -> f32

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()

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

Calls MR_FillingSurface_TPMS_fill().

◆ get_minimal_resolution()

auto meshlib::filling_surface::tpms::get_minimal_resolution ( type:meshlib::filling_surface::tpms::Type ,
iso:f32  ) -> f32

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

Calls MR_FillingSurface_TPMS_getMinimalResolution().

◆ get_number_of_voxels_mr_mesh()

auto meshlib::filling_surface::tpms::get_number_of_voxels_mr_mesh ( mesh:&meshlib::Mesh ,
frequency:f32 ,
resolution:f32  ) -> usize

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().

◆ get_number_of_voxels_mr_vector3f()

auto meshlib::filling_surface::tpms::get_number_of_voxels_mr_vector3f ( size:&meshlib::Vector3f ,
frequency:f32 ,
resolution:f32  ) -> usize

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().

◆ get_type_names()

auto meshlib::filling_surface::tpms::get_type_names ( ) -> meshlib::Owned< meshlib::std_vector_std_string >

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

Calls MR_FillingSurface_TPMS_getTypeNames().

◆ get_type_tooltips()

auto meshlib::filling_surface::tpms::get_type_tooltips ( ) -> meshlib::Owned< meshlib::std_vector_std_string >

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

Calls MR_FillingSurface_TPMS_getTypeTooltips().

◆ is_thick()

auto meshlib::filling_surface::tpms::is_thick ( type:meshlib::filling_surface::tpms::Type ) -> bool

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

Calls MR_FillingSurface_TPMS_isThick().