11#ifndef EBGEOMETRY_SOUP_HPP
12#define EBGEOMETRY_SOUP_HPP
40[[nodiscard]]
inline static bool
42 const std::vector<std::vector<size_t>>& a_facets);
56[[nodiscard]]
inline static bool
58 const std::vector<std::vector<size_t>>& a_facets,
59 std::string& a_reason);
72inline static std::vector<size_t>
87[[nodiscard]]
inline static bool
112inline static std::vector<size_t>
114 std::vector<std::vector<size_t>>& a_facets);
124[[nodiscard]]
inline static std::string
139[[nodiscard]]
inline static std::string
152[[nodiscard]]
inline static std::string
176 const std::vector<std::vector<size_t>>& a_facets,
177 const std::string& a_id);
199#include "EBGeometry_SoupImplem.hpp"
Growable bump arena for the GPU memory foundation.
Declaration of 2D and 3D point/vector classes with templated precision, and free functions on them.
DCEL mesh class - stores a doubly-connected edge mesh.
Definition EBGeometry_DCEL_Mesh.hpp:102
Growable bump arena over a MemoryResource.
Definition EBGeometry_Pool.hpp:205
Three-dimensional vector class with arithmetic operators.
Definition EBGeometry_Vec.hpp:258
static void reconcilePairEdgesDCEL(EBGeometry::DCEL::MeshT< T > &a_mesh)
Reconcile pair edges: link each half-edge with its reverse.
static std::string findFoldedFeature(const EBGeometry::DCEL::MeshT< T > &a_mesh)
Find an edge or vertex of a half-edge mesh whose pseudonormal is zero.
static void soupToDCEL(EBGeometry::DCEL::MeshT< T > &a_mesh, Pool &a_pool, const std::vector< EBGeometry::Vec3T< T > > &a_vertices, const std::vector< std::vector< size_t > > &a_facets, const std::string &a_id)
Convert a polygon soup into a DCEL half-edge mesh.
static bool isValid(const std::vector< EBGeometry::Vec3T< T > > &a_vertices, const std::vector< std::vector< size_t > > &a_facets, std::string &a_reason)
Check that a polygon soup can describe a mesh at all.
static bool containsDegeneratePolygons(const std::vector< EBGeometry::Vec3T< T > > &a_vertices, const std::vector< std::vector< size_t > > &a_facets)
Check if a polygon soup contains degenerate polygons.
static std::string findRepeatedVertex(const std::vector< std::vector< size_t > > &a_facets)
Find a polygon that visits a vertex twice.
static std::vector< size_t > removeDegeneratePolygons(const std::vector< EBGeometry::Vec3T< T > > &a_vertices, std::vector< std::vector< size_t > > &a_facets)
Remove degenerate polygons from a compressed polygon soup, repairing the mesh around them.
static bool isZeroArea(const std::vector< EBGeometry::Vec3T< T > > &a_vertices, const std::vector< size_t > &a_facet) noexcept
Whether a polygon has zero area to within rounding.
static std::string findTopologyDefect(const std::vector< std::vector< size_t > > &a_facets)
Find a defect that stops a compressed, cleaned polygon soup from forming a half-edge mesh.
static std::vector< size_t > compress(std::vector< EBGeometry::Vec3T< T > > &a_vertices, std::vector< std::vector< size_t > > &a_facets)
Compress a polygon soup by removing duplicate vertices.
Namespace containing all of EBGeometry's functionality.
Definition EBGeometry_Affine.hpp:26