MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::FillingSurface::CellularSurface Namespace Reference

Classes

struct  Params
 

Enumerations

enum class  Type : int { Cylinder = 0 , Rect }
 Type of cellular surface base element. More...
 

Functions

MRVOXELS_API std::vector< std::string > getTypeNames ()
 Returns the names for each type of filling.
 
MRVOXELS_API Expected< Meshbuild (const Vector3f &size, const Params &params, const ProgressCallback &cb={})
 Build a cellular surface of size size.
 
MRVOXELS_API Expected< Meshfill (const Mesh &mesh, const Params &params, const ProgressCallback &cb={})
 Fill given mesh with a cellular surface.
 
MRVOXELS_API float estimateDensity (float period, float width, float r)
 Estimate the density of the cellular surface.
 
MRVOXELS_API std::optional< float > estimateWidth (float period, float r, float targetDensity)
 

Enumeration Type Documentation

◆ Type

Type of cellular surface base element.

Enumerator
Cylinder 
Rect 

Function Documentation

◆ build()

MRVOXELS_API Expected< Mesh > MR::FillingSurface::CellularSurface::build ( const Vector3f & size,
const Params & params,
const ProgressCallback & cb = {} )

Build a cellular surface of size size.

◆ estimateDensity()

MRVOXELS_API float MR::FillingSurface::CellularSurface::estimateDensity ( float period,
float width,
float r )

Estimate the density of the cellular surface.

◆ estimateWidth()

MRVOXELS_API std::optional< float > MR::FillingSurface::CellularSurface::estimateWidth ( float period,
float r,
float targetDensity )

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.

◆ fill()

MRVOXELS_API Expected< Mesh > MR::FillingSurface::CellularSurface::fill ( const Mesh & mesh,
const Params & params,
const ProgressCallback & cb = {} )

Fill given mesh with a cellular surface.

◆ getTypeNames()

MRVOXELS_API std::vector< std::string > MR::FillingSurface::CellularSurface::getTypeNames ( )

Returns the names for each type of filling.