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

Classes

struct  Params
 

Functions

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)
 

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.