12 #ifndef CD_EBGeometryIFImplem_H
13 #define CD_EBGeometryIFImplem_H
16 #include <CD_NamespaceHeader.H>
21 this->m_sdf =
nullptr;
22 this->m_flipInside =
false;
28 const bool a_flipInside,
33 this->m_flipInside = a_flipInside;
34 this->m_zCoord = a_zCoord;
40 this->m_sdf = a_inputIF.
m_sdf;
56 EBGeometry::Vec3T<T> p(a_point[0], a_point[1], m_zCoord);
58 EBGeometry::Vec3T<T> p(a_point[0], a_point[1], a_point[2]);
61 Real ret = Real(m_sdf->value(p));
77 #include <CD_NamespaceFooter.H>
Binding of EBGeometry signed distance functions to Chombo objcts.
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