12 #ifndef CD_EBGeometryIF_H
13 #define CD_EBGeometryIF_H
20 #include <IntersectionIF.H>
23 #include <EBGeometry.hpp>
26 #include <CD_NamespaceHeader.H>
33 template <
typename T = Real>
48 EBGeometryIF(
const std::shared_ptr<EBGeometry::ImplicitFunction<T>>& a_sdf,
49 const bool a_flipInside,
50 const Real a_zCoord = 0.0);
68 value(
const RealVect& a_point)
const override;
80 std::shared_ptr<const EBGeometry::ImplicitFunction<T>>
m_sdf;
93 #include <CD_NamespaceFooter.H>
Implementation of CD_EBGeometryIF.H.
Shallow binding of EBGeometry signed distance functions to Chombo.
Definition: CD_EBGeometryIF.H:35
virtual ~EBGeometryIF()
Destructor. Does nothing.
Definition: CD_EBGeometryIFImplem.H:46
std::shared_ptr< const EBGeometry::ImplicitFunction< T > > m_sdf
Signed distance function.
Definition: CD_EBGeometryIF.H:80
EBGeometryIF()
Constructor. Sets shape to nullptr.
Definition: CD_EBGeometryIFImplem.H:19
virtual BaseIF * newImplicitFunction() const override
IF factory method.
Definition: CD_EBGeometryIFImplem.H:72
Real m_zCoord
z-coordinate through which the object is sliced.
Definition: CD_EBGeometryIF.H:90
virtual Real value(const RealVect &a_point) const override
Value function. Returns distance to object.
Definition: CD_EBGeometryIFImplem.H:53
bool m_flipInside
Hook for making outside -> inside.
Definition: CD_EBGeometryIF.H:85