EBGeometry  1.0
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
FastUnionIF< T, P, BV, K > Class Template Reference

Implicit function union using BVHs. More...

#include <EBGeometry_CSG.hpp>

Inheritance diagram for FastUnionIF< T, P, BV, K >:
Inheritance graph
[legend]
Collaboration diagram for FastUnionIF< T, P, BV, K >:
Collaboration graph
[legend]

Public Types

using Root = typename EBGeometry::BVH::LinearBVH< T, P, BV, K >
 Alias for linear BVH type.
 
using Node = typename Root::LinearNode
 Alias for linear BVH node.
 

Public Member Functions

 FastUnionIF ()=delete
 Disallowed, use the full constructor.
 
 FastUnionIF (const std::vector< std::pair< std::shared_ptr< const P >, BV >> &a_primsAndBVs) noexcept
 Full constructor - constructs bounding volumes in place. More...
 
 FastUnionIF (const std::vector< std::shared_ptr< P >> &a_primitives, const std::vector< BV > &a_boundingVolumes) noexcept
 Full constructor - constructs bounding volumes in place. More...
 
virtual ~FastUnionIF ()=default
 Destructor (does nothing)
 
virtual T value (const Vec3T< T > &a_point) const noexcept override
 Value function. More...
 
const BV & getBoundingVolume () const noexcept
 Get the bounding volume.
 
- 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 Member Functions

void buildTree (const std::vector< std::pair< std::shared_ptr< const P >, BV >> &a_primsAndBVs, const BVH::Build a_build=BVH::Build::TopDown) noexcept
 Build BVH tree for the input objects. More...
 

Protected Attributes

std::shared_ptr< EBGeometry::BVH::LinearBVH< T, P, BV, K > > m_bvh
 Root node for linearized BVH tree.
 

Detailed Description

template<class T, class P, class BV, size_t K>
class FastUnionIF< T, P, BV, K >

Implicit function union using BVHs.

Constructor & Destructor Documentation

◆ FastUnionIF() [1/2]

template<class T , class P , class BV , size_t K>
FastUnionIF< T, P, BV, K >::FastUnionIF ( const std::vector< std::pair< std::shared_ptr< const P >, BV >> &  a_primsAndBVs)
noexcept

Full constructor - constructs bounding volumes in place.

Parameters
[in]a_primsAndBVsPrimitives and their bounding volumes.

◆ FastUnionIF() [2/2]

template<class T , class P , class BV , size_t K>
FastUnionIF< T, P, BV, K >::FastUnionIF ( const std::vector< std::shared_ptr< P >> &  a_primitives,
const std::vector< BV > &  a_boundingVolumes 
)
noexcept

Full constructor - constructs bounding volumes in place.

Parameters
[in]a_primitivesInput primitives.
[in]a_boundingVolumesBounding volumes for primitives.

Member Function Documentation

◆ buildTree()

template<class T , class P , class BV , size_t K>
void FastUnionIF< T, P, BV, K >::buildTree ( const std::vector< std::pair< std::shared_ptr< const P >, BV >> &  a_primsAndBVs,
const BVH::Build  a_build = BVH::Build::TopDown 
)
inlineprotectednoexcept

Build BVH tree for the input objects.

Parameters
[in]a_primsAndBVsGeometric primitives and their bounding volumes.
[in]a_buildBuild method (see EBGeometry_BVH.hpp)

◆ value()

template<class T , class P , class BV , size_t K>
virtual T FastUnionIF< T, P, BV, K >::value ( const Vec3T< T > &  a_point) const
overridevirtualnoexcept

Value function.

Parameters
[in]a_point3D point.

Implements ImplicitFunction< T >.

Reimplemented in FastSmoothUnionIF< T, P, BV, K >.


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