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

#include <MRFillingSurface.h>

Public Attributes

Type type = Type::Cylinder
 the type of the base element
 
Vector3f period = Vector3f::diagonal( 1.f )
 the distance between consecutive cylinders in each direction
 
Vector3f width = Vector3f::diagonal( 0.3f )
 the width of cylinders in each direction
 
float r = 0.f
 the radius of uniting spheres
 
bool highRes = false
 
bool preserveTips = false
 

Member Data Documentation

◆ highRes

bool MR::FillingSurface::CellularSurface::Params::highRes = false

used in tests in order to make surfaces close to their analytical expression recommended to be false for real usage for better performance

◆ period

Vector3f MR::FillingSurface::CellularSurface::Params::period = Vector3f::diagonal( 1.f )

the distance between consecutive cylinders in each direction

◆ preserveTips

bool MR::FillingSurface::CellularSurface::Params::preserveTips = false

Used in tests for roughly the same purpose: the computations of density estimation are made under the assumption of an infinite surface. Thus, we must impose "boundary conditions" that inflict the "tips" of the bars (cylinders or cubes) to be preserved on the boundary of the generated filling surface. However, for the aesthetic reasons, it was requested that the tips must be cut in the UI. And here comes this flag. Note that for the estimation of density in UI the influence of "tips" is not significant (it tends to zero with growing size), however we cannot afford to run tests on too big surfaces as it takes too long.

◆ r

float MR::FillingSurface::CellularSurface::Params::r = 0.f

the radius of uniting spheres

◆ type

Type MR::FillingSurface::CellularSurface::Params::type = Type::Cylinder

the type of the base element

◆ width

Vector3f MR::FillingSurface::CellularSurface::Params::width = Vector3f::diagonal( 0.3f )

the width of cylinders in each direction


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