Surface of cylinders in a grid. More...
Classes | |
| struct | Params |
Enumerations | |
| enum class | Type : int { Cylinder = 0 , Rect } |
| Type of cellular surface base element. More... | |
Functions | |
| std::vector< std::string > | getTypeNames () |
| Returns the names for each type of filling. | |
| Expected< Mesh > | build (const Vector3f &size, const Params ¶ms, const ProgressCallback &cb={}) |
Build a cellular surface of size size. | |
| Expected< Mesh > | fill (const Mesh &mesh, const Params ¶ms, const ProgressCallback &cb={}) |
| Fill given mesh with a cellular surface. | |
| float | estimateDensity (float period, float width, float r) |
| Estimate the density of the cellular surface. | |
| std::optional< float > | estimateWidth (float period, float r, float targetDensity) |
Surface of cylinders in a grid.
|
strong |
Type of cellular surface base element.
| Enumerator | |
|---|---|
| Cylinder | |
| Rect | |
| Expected< Mesh > MR::FillingSurface::CellularSurface::build | ( | const Vector3f & | size, |
| const Params & | params, | ||
| const ProgressCallback & | cb = {} ) |
Build a cellular surface of size size.
| float MR::FillingSurface::CellularSurface::estimateDensity | ( | float | period, |
| float | width, | ||
| float | r ) |
Estimate the density of the cellular surface.
| 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.
| Expected< Mesh > MR::FillingSurface::CellularSurface::fill | ( | const Mesh & | mesh, |
| const Params & | params, | ||
| const ProgressCallback & | cb = {} ) |
Fill given mesh with a cellular surface.
| std::vector< std::string > MR::FillingSurface::CellularSurface::getTypeNames | ( | ) |
Returns the names for each type of filling.