MeshLib C# Docs
Loading...
Searching...
No Matches
MR.FillingSurface.CellularSurface Class Reference

Public Types

enum  Type
 
enum  Type : int
 Type of cellular surface base element.
 

Static Public Member Functions

static unsafe MR.Std.Vector_StdString getTypeNames ()
 Returns the names for each type of filling Generated from function MR.FillingSurface.CellularSurface.getTypeNames.
 
static unsafe MR.Mesh build (in MR.Vector3f size, MR.FillingSurface.CellularSurface.Const_Params params_, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Build a cellular surface of size size Generated from function MR.FillingSurface.CellularSurface.build. Parameter cb defaults to {}.
 
static unsafe MR.Mesh fill (MR.Const_Mesh mesh, MR.FillingSurface.CellularSurface.Const_Params params_, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Fill given mesh with a cellular surface Generated from function MR.FillingSurface.CellularSurface.fill. Parameter cb defaults to {}.
 
static float estimateDensity (float period, float width, float r)
 Estimate the density of the cellular surface Generated from function MR.FillingSurface.CellularSurface.estimateDensity.
 
static unsafe MR.Std.Optional_Float estimateWidth (float period, float r, float targetDensity)
 Estimate the width that is needed to attain the targetDensity. Inverse of estimateDensity.
 

Member Function Documentation

◆ estimateWidth()

static unsafe MR.Std.Optional_Float MR.FillingSurface.CellularSurface.estimateWidth ( float period,
float r,
float targetDensity )
inlinestatic

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. Generated from function MR.FillingSurface.CellularSurface.estimateWidth.

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