chombo-discharge
Public Types | Public Member Functions | Protected Attributes | List of all members
SignedDistanceDCEL< T > Class Template Reference

Signed distance function from a DCEL mesh. More...

#include <CD_SignedDistanceDCEL.H>

Inheritance diagram for SignedDistanceDCEL< T >:
Inheritance graph
[legend]
Collaboration diagram for SignedDistanceDCEL< T >:
Collaboration graph
[legend]

Public Types

using Mesh = EBGeometry::DCEL::MeshT< T >
 Alias for EBGeometry DCEl mesh with precision T.
 

Public Member Functions

 SignedDistanceDCEL ()=delete
 Disallowed, use the full constructor.
 
 SignedDistanceDCEL (const std::shared_ptr< Mesh > &a_mesh, const bool a_flipInside, const Real a_zCoord=0.0)
 Full constructor. More...
 
 SignedDistanceDCEL (const SignedDistanceDCEL &a_object)
 Copy constructor. More...
 
 ~SignedDistanceDCEL ()
 Destructor (does nothing)
 
Real value (const RealVect &a_point) const override
 Value function. More...
 
BaseIF * newImplicitFunction () const override
 Factory method.
 

Protected Attributes

std::shared_ptr< Meshm_mesh
 DCEL mesh.
 
bool m_flipInside
 Hook for turning inside to outside.
 
Real m_zCoord
 For 2D only. z-coordinate through which we slice the 3D object.
 

Detailed Description

template<class T>
class SignedDistanceDCEL< T >

Signed distance function from a DCEL mesh.

This does not use a bounding volume hierarchy for performance. The template parameter is the floating point precision.

Constructor & Destructor Documentation

◆ SignedDistanceDCEL() [1/2]

template<class T >
SignedDistanceDCEL< T >::SignedDistanceDCEL ( const std::shared_ptr< Mesh > &  a_mesh,
const bool  a_flipInside,
const Real  a_zCoord = 0.0 
)

Full constructor.

Parameters
[in]a_meshDCEL mesh
[in]a_flipInsideHook for turning inside to outside
[in]a_zCoord2D only. This is the z-coordinate through which we slice the 3D object.

◆ SignedDistanceDCEL() [2/2]

template<class T >
SignedDistanceDCEL< T >::SignedDistanceDCEL ( const SignedDistanceDCEL< T > &  a_object)

Copy constructor.

Parameters
[in]a_objectOther distance function

Member Function Documentation

◆ value()

template<class T >
Real SignedDistanceDCEL< T >::value ( const RealVect &  a_point) const
override

Value function.

Parameters
[in]a_point2D/3D point

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