11#ifndef EBGEOMETRY_DCEL_ITERATOR_HPP
12#define EBGEOMETRY_DCEL_ITERATOR_HPP
52 static_assert(std::is_floating_point_v<T>,
"T must be a floating-point type");
153 operator()() const noexcept;
168 operator++() noexcept;
200static_assert(!std::is_trivially_copyable_v<
EdgeIteratorT<
float>>,
201 "
EdgeIteratorT<
float> must NOT be trivially copyable -- see its copy "
202 "constructor's doc comment");
203static_assert(!std::is_trivially_copyable_v<
EdgeIteratorT<
double>>,
204 "
EdgeIteratorT<
double> must NOT be trivially copyable -- see its copy "
205 "constructor's doc comment");
211#include "EBGeometry_DCEL_IteratorImplem.hpp"
GPU portability layer: host/device decoration macros and backend detection.
#define EBGEOMETRY_HOST_DEVICE
Mark a function as callable from both host and device code (no-op on host compilers).
Definition EBGeometry_GPU.hpp:80
Half-edge iterator class for navigating the half edge mesh.
Definition EBGeometry_DCEL_Iterator.hpp:51
~EdgeIteratorT() noexcept=default
Destructor.
EdgeIteratorT()=delete
Default construction is not allowed. Use one of the full constructors.
uint32_t m_startEdge
Starting half-edge index, or UINT32_MAX if unset.
Definition EBGeometry_DCEL_Iterator.hpp:192
EdgeIteratorT(const Mesh &a_mesh, const Face &a_face) noexcept
Constructor, taking a mesh and a face as argument. The iterator begins at the half-edge index contain...
EdgeIteratorT(EdgeIteratorT &&a_other) noexcept=default
Move constructor.
EdgeIteratorT(const EdgeIteratorT &a_other) noexcept
Copy constructor.
Definition EBGeometry_DCEL_Iterator.hpp:113
const Mesh * m_mesh
Owning mesh, used to resolve edge indices. Non-owning; must outlive the iterator.
Definition EBGeometry_DCEL_Iterator.hpp:182
bool m_fullLoop
If true, a full loop has been made around the polygon face.
Definition EBGeometry_DCEL_Iterator.hpp:187
EdgeIteratorT(const Mesh &a_mesh, const uint32_t a_startEdgeIndex) noexcept
Constructor, taking a mesh and an arbitrary starting half-edge index directly (rather than a face's o...
bool ok() const noexcept
Function which checks if the iteration can be continued.
void reset() noexcept
Reset function for the iterator. This resets the iterator so that it begins from the starting half-ed...
uint32_t m_curEdge
Current half-edge index, or UINT32_MAX if unset.
Definition EBGeometry_DCEL_Iterator.hpp:197
Half-edge class for navigating a DCEL mesh.
Definition EBGeometry_DCEL_Edge.hpp:60
Face class for navigating a DCEL mesh.
Definition EBGeometry_DCEL_Face.hpp:68
DCEL mesh class - stores a doubly-connected edge mesh.
Definition EBGeometry_DCEL_Mesh.hpp:102
Vertex class for navigating a DCEL mesh.
Definition EBGeometry_DCEL_Vertex.hpp:63
Namespace containing all of EBGeometry's functionality.
Definition EBGeometry_Affine.hpp:26