chombo-discharge
Loading...
Searching...
No Matches
CD_TriangleCollection.H
Go to the documentation of this file.
1/* chombo-discharge
2 * Copyright © 2026 SINTEF Energy Research.
3 * Please refer to Copyright.txt and LICENSE in the chombo-discharge root directory.
4 */
5
12#ifndef CD_TriangleCollection_H
13#define CD_TriangleCollection_H
14
15// Std includes
16#include <vector>
17#include <memory>
18#include <string>
19
20// Our includes
21#include <CD_Triangle.H>
22#include <CD_DataParser.H>
23#include <CD_NamespaceHeader.H>
24
137
138#include <CD_NamespaceFooter.H>
139
140#endif
Declaration of various routines for simple parsing of input data.
Header file for a simple Triangle class.
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:37
Class that represents a set of triangles.
Definition CD_TriangleCollection.H:48
EBGeometry::BoundingVolumes::AABBT< Real > BV
Bounding volume type.
Definition CD_TriangleCollection.H:63
Triangle::Vec3 Vec3
3D vector type, re-exported from Triangle for convenience.
Definition CD_TriangleCollection.H:53
virtual std::vector< std::pair< std::shared_ptr< const Triangle >, Real > > getClosestTriangles(const Vec3 &a_point) const noexcept
Hierarchical BVH search that returns candidate closest triangles to a query point.
Definition CD_TriangleCollection.cpp:72
bool m_isDefined
Is defined or not.
Definition CD_TriangleCollection.H:130
virtual void define(const std::vector< std::shared_ptr< Triangle > > &a_triangles) noexcept
Build the BVH tree from a set of triangles.
Definition CD_TriangleCollection.cpp:39
static constexpr int K
Branching factor for BVH tree.
Definition CD_TriangleCollection.H:58
TriangleCollection() noexcept
Default constructor.
Definition CD_TriangleCollection.cpp:20
std::shared_ptr< EBGeometry::BVH::LinearBVH< Real, Triangle, BV, K > > m_bvh
Triangle collection – stored in a BVH-tree for faster lookup.
Definition CD_TriangleCollection.H:135
Class that represents a single triangle together with associated metadata on the vertices (one float ...
Definition CD_Triangle.H:29
EBGeometry::Vec3T< Real > Vec3
Alias for always-3D vector type.
Definition CD_Triangle.H:34