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

Classes

struct  Params
struct  Type

Functions

auto get_type_names () -> meshlib::Owned< meshlib::std_vector_std_string >
auto build (size:&meshlib::Vector3f, params:&meshlib::filling_surface::cellular_surface::Params, 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::cellular_surface::Params, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >
auto estimate_density (period:f32, width:f32, r:f32) -> f32
auto estimate_width (period:f32, r:f32, targetDensity:f32) -> meshlib::Owned< meshlib::std_optional_float >

Function Documentation

◆ build()

auto meshlib::filling_surface::cellular_surface::build ( size:&meshlib::Vector3f ,
params:&meshlib::filling_surface::cellular_surface::Params ,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

Build a cellular surface of size size Generated from function MR::FillingSurface::CellularSurface::build.

Calls MR_FillingSurface_CellularSurface_build().

◆ estimate_density()

auto meshlib::filling_surface::cellular_surface::estimate_density ( period:f32 ,
width:f32 ,
r:f32  ) -> f32

Estimate the density of the cellular surface Generated from function MR::FillingSurface::CellularSurface::estimateDensity.

Calls MR_FillingSurface_CellularSurface_estimateDensity().

◆ estimate_width()

auto meshlib::filling_surface::cellular_surface::estimate_width ( period:f32 ,
r:f32 ,
targetDensity:f32  ) -> meshlib::Owned< meshlib::std_optional_float >

Estimate the width that is needed to attain the targetDensity. Inverse of estimateDensity.

Note
The width is not unique in general, no guarantees are made about which value among possible will be returned. Due to the simplification of the formula (sphere must either fully contain the intersection of cylinders or be inside it), solution not always exists. Generated from function MR::FillingSurface::CellularSurface::estimateWidth.

Calls MR_FillingSurface_CellularSurface_estimateWidth().

◆ fill()

auto meshlib::filling_surface::cellular_surface::fill ( mesh:&meshlib::Mesh ,
params:&meshlib::filling_surface::cellular_surface::Params ,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_MR_Mesh_std_string >

Fill given mesh with a cellular surface Generated from function MR::FillingSurface::CellularSurface::fill.

Calls MR_FillingSurface_CellularSurface_fill().

◆ get_type_names()

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

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

Calls MR_FillingSurface_CellularSurface_getTypeNames().