MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.fillingsurface.cellularsurface.Functions Class Reference

Static Public Member Functions

static meshlib.std_vector_std_string getTypeNames ()
static meshlib.Mesh build (meshlib.Vector3f size, meshlib.fillingsurface.cellularsurface.Params params, meshlib.std_function_bool_from_float cb)
static meshlib.Mesh fill (meshlib.Mesh mesh, meshlib.fillingsurface.cellularsurface.Params params, meshlib.std_function_bool_from_float cb)
static float estimateDensity (float period, float width, float r)
static meshlib.std_optional_float estimateWidth (float period, float r, float targetDensity)

Detailed Description

The free functions of this namespace.

Member Function Documentation

◆ build()

meshlib.Mesh meshlib.fillingsurface.cellularsurface.Functions.build ( meshlib.Vector3f size,
meshlib.fillingsurface.cellularsurface.Params params,
meshlib.std_function_bool_from_float cb )
static

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

Calls MR_FillingSurface_CellularSurface_build(). The C++ function returns expected<MR::Mesh, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ estimateDensity()

float meshlib.fillingsurface.cellularsurface.Functions.estimateDensity ( float period,
float width,
float r )
static

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

Calls MR_FillingSurface_CellularSurface_estimateDensity().

◆ estimateWidth()

meshlib.std_optional_float meshlib.fillingsurface.cellularsurface.Functions.estimateWidth ( float period,
float r,
float targetDensity )
static

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

meshlib.Mesh meshlib.fillingsurface.cellularsurface.Functions.fill ( meshlib.Mesh mesh,
meshlib.fillingsurface.cellularsurface.Params params,
meshlib.std_function_bool_from_float cb )
static

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

Calls MR_FillingSurface_CellularSurface_fill(). The C++ function returns expected<MR::Mesh, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ getTypeNames()

meshlib.std_vector_std_string meshlib.fillingsurface.cellularsurface.Functions.getTypeNames ( )
static

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

Calls MR_FillingSurface_CellularSurface_getTypeNames().


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