EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
EBGeometry_SurfacePieces.hpp File Reference

The pieces of surface an object with regions has, and how a domain's surface groups cover them. More...

#include <algorithm>
#include <cstdint>
#include <string>
#include <utility>
#include <vector>
#include "EBGeometry_DomainSetup.hpp"
#include "EBGeometry_Expr.hpp"
#include "EBGeometry_Macros.hpp"
#include "EBGeometry_Ray.hpp"
#include "EBGeometry_SurfaceRef.hpp"
Include dependency graph for EBGeometry_SurfacePieces.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  EBGeometry::SurfacePiece< T >
 One piece of an object's surface, as found: a shape's surface between two regions (see SurfaceSelector::piece()), with the parts of it seen. More...
 
struct  EBGeometry::SurfaceLevel
 One level a surface belongs to (SurfaceInventory::levelsOf()): the surface itself, its shape, or a node of the expression above it, with the contiguous range of surfaces it covers. More...
 
class  EBGeometry::SurfaceInventory
 What an expression's index says about its surfaces, kept for checking surface groups against them without the index: each surface's shape (leaf), each shape's parts and their labels, the pairs of regions each may separate, and each region's material. More...
 
struct  EBGeometry::PossiblePiece
 A piece of surface an object may have: a surface between two regions, the later inside. More...
 
struct  EBGeometry::PieceCoverage
 How surface groups cover a piece: how much of it they hold, and the surface group when one holds all of it. More...
 

Namespaces

namespace  EBGeometry
 Namespace containing all of EBGeometry's functionality.
 

Enumerations

enum class  EBGeometry::Coverage : uint8_t { EBGeometry::None , EBGeometry::Partly , EBGeometry::Full }
 How much of a piece a domain's surface groups hold. More...
 

Functions

template<class TapeType >
std::vector< SurfacePiece< ShapePrecision< TapeType > > > EBGeometry::findSurfacePieces (const TapeType &a_tape, const uint32_t a_resolution=64)
 The pieces of surface an object with regions has, as rays find them: every surface between every pair of regions they cross, each once, in the order first found.
 
std::vector< PossiblePiece > EBGeometry::possiblePieces (const SurfaceInventory &a_inventory)
 Every piece of surface an object may have: each surface between each pair of regions its index says it may separate. A superset: every piece the object has is listed (findSurfacePieces() confirms which), and some listed may not occur.
 
PieceCoverage EBGeometry::coverageOf (const PossiblePiece &a_piece, const SurfaceInventory &a_inventory, const DomainSetup &a_setup, const std::vector< uint32_t > &a_parts)
 How a domain's surface groups cover a piece an object may have, judged on the parts of it found (a SurfacePiece's m_parts): a shape's parts need not all lie between the piece's two regions (a channel's side against the solid it is bored through, its caps against the outside), and a part that does not cannot be in a group there.
 
PieceCoverage EBGeometry::coverageOf (const PossiblePiece &a_piece, const SurfaceInventory &a_inventory, const DomainSetup &a_setup)
 How a domain's surface groups cover a piece an object may have: exactly, part by part when its selectors tell parts apart.
 

Detailed Description

The pieces of surface an object with regions has, and how a domain's surface groups cover them.

Author
Robert Marskar