EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
Public Attributes | Static Public Attributes | List of all members
EBGeometry::ComponentOptions< T > Struct Template Reference

How connectedComponents() resolves the space it searches. More...

#include <EBGeometry_ConnectedComponents.hpp>

Public Attributes

T m_resolution = T(0)
 The resolution h, the size of the smallest cells (those near a surface), positive.
 
BoundingVolumes::AABBT< T > m_box = BoundingVolumes::AABBT<T>()
 The box searched: the space a solver computes in, say. Empty (the default): the tape's bounding box grown by two cells on every side, so that the outside is one shell around the object. Either is grown at its high corner to a whole number of cells of size h.
 
uint64_t m_maxCells = DefaultMaxCells
 The most cells the search may keep, which bounds the memory it takes. A search that reaches it aborts with a message, in every build (connectedComponents()); Language::completeness() warns instead.
 

Static Public Attributes

static constexpr uint64_t DefaultMaxCells = 100000000U
 The default of m_maxCells.
 

Detailed Description

template<class T>
struct EBGeometry::ComponentOptions< T >

How connectedComponents() resolves the space it searches.

Template Parameters
TFloating-point precision.

Member Data Documentation

◆ DefaultMaxCells

template<class T >
constexpr uint64_t EBGeometry::ComponentOptions< T >::DefaultMaxCells = 100000000U
staticconstexpr

The default of m_maxCells.

A search's peak memory grows by about 83 bytes per cell kept (float; a little more in double, whose leaves are 8 bytes larger): the octree's hash map of cells, its leaves, and the labeling's arrays. Measured as the peak resident set of a search of 27 hollow shells in a box (the ConnectedComponents probe's model) against getNumCells(): 75.6 MB at 0.92 million cells, 295 MB at 3.69 million and 1178 MB at 14.8 million, the steps between them 83 bytes per cell. 100 million cells is therefore about 8.3 GB, under 10 GB in either precision: room for a fine search of a large model on a workstation, while a resolution chosen too fine stops with a message rather than exhausting memory.

◆ m_maxCells

template<class T >
uint64_t EBGeometry::ComponentOptions< T >::m_maxCells = DefaultMaxCells

The most cells the search may keep, which bounds the memory it takes. A search that reaches it aborts with a message, in every build (connectedComponents()); Language::completeness() warns instead.

About 83 bytes of memory per cell (see DefaultMaxCells).

◆ m_resolution

template<class T >
T EBGeometry::ComponentOptions< T >::m_resolution = T(0)

The resolution h, the size of the smallest cells (those near a surface), positive.

Two parts of a region joined by a neck thinner than h, or separated by a wall thinner than h, may count as one component; a part thinner than h may be missed. With h the cell size of the solver the components are for, they are the components that solver sees.


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