EBGeometry  1.0
Public Member Functions | Protected Attributes | List of all members
UnionIF< T > Class Template Reference

CSG union. Computes the minimum value of all input primitives. More...

#include <EBGeometry_CSG.hpp>

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

Public Member Functions

 UnionIF ()=delete
 Disallowed, use the full constructor.
 
 UnionIF (const std::vector< std::shared_ptr< ImplicitFunction< T >>> &a_implicitFunctions) noexcept
 Full constructor. Computes the CSG union. More...
 
virtual ~UnionIF ()=default
 Destructor (does nothing)
 
value (const Vec3T< T > &a_point) const noexcept override
 Value function. More...
 
- Public Member Functions inherited from ImplicitFunction< T >
 ImplicitFunction ()=default
 Disallowed, use the full constructor.
 
virtual ~ImplicitFunction ()=default
 Destructor (does nothing)
 
operator() (const Vec3T< T > &a_point) const noexcept
 Alternative signature for the value function. More...
 
template<class BV >
BV approximateBoundingVolumeOctree (const Vec3T< T > &a_initialLowCorner, const Vec3T< T > &a_initialHighCorner, const unsigned int a_maxTreeDepth, const T &a_safety=0.0) const noexcept
 Compute an approximation to the bounding volume for the implicit surface, using octrees. More...
 

Protected Attributes

std::vector< std::shared_ptr< const ImplicitFunction< T > > > m_implicitFunctions
 List of primitives.
 

Detailed Description

template<class T>
class UnionIF< T >

CSG union. Computes the minimum value of all input primitives.

Constructor & Destructor Documentation

◆ UnionIF()

template<class T >
UnionIF< T >::UnionIF ( const std::vector< std::shared_ptr< ImplicitFunction< T >>> &  a_implicitFunctions)
noexcept

Full constructor. Computes the CSG union.

Parameters
[in]a_implicitFunctionsList of primitives

Member Function Documentation

◆ value()

template<class T >
T UnionIF< T >::value ( const Vec3T< T > &  a_point) const
overridevirtualnoexcept

Value function.

Parameters
[in]a_point3D point.

Implements ImplicitFunction< T >.


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