MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.FillingSurface.CellularSurface Class Reference

Classes

class  Params
 
class  Type
 

Static Public Member Functions

Mesh build (Vector3f size, FillingSurface.CellularSurface.Params params, func_bool_from_float cb='{}')
 
float estimateDensity (float period, float width, float r)
 
float estimateWidth (float period, float r, float targetDensity)
 
Mesh fill (Mesh mesh, FillingSurface.CellularSurface.Params params, func_bool_from_float cb='{}')
 
std_vector_std_string getTypeNames ()
 

Detailed Description

This is a namespace.

Member Function Documentation

◆ build()

Mesh mrmeshpy.FillingSurface.CellularSurface.build ( Vector3f size,
FillingSurface.CellularSurface.Params params,
func_bool_from_float cb = '{}' )
static
Build a cellular surface of size \\p size

◆ estimateDensity()

float mrmeshpy.FillingSurface.CellularSurface.estimateDensity ( float period,
float width,
float r )
static
Estimate the density of the cellular surface

◆ estimateWidth()

float mrmeshpy.FillingSurface.CellularSurface.estimateWidth ( float period,
float r,
float targetDensity )
static
Estimate the width that is needed to attain the \\p targetDensity. Inverse of \\ref estimateDensity.
\\note The width is not unique in general, no guarantees are made about which value among possible will be returned.
  Due to the simplification of the formula (sphere must either fully contain the intersection of cylinders or be inside it), solution not always exists.

◆ fill()

Mesh mrmeshpy.FillingSurface.CellularSurface.fill ( Mesh mesh,
FillingSurface.CellularSurface.Params params,
func_bool_from_float cb = '{}' )
static
Fill given mesh with a cellular surface

◆ getTypeNames()

std_vector_std_string mrmeshpy.FillingSurface.CellularSurface.getTypeNames ( )
static
Returns the names for each type of filling

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