EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
Namespaces | Functions
EBGeometry_Soup.hpp File Reference

Declaration of polygon-soup utilities for building DCEL meshes. More...

#include <cstddef>
#include <string>
#include <vector>
#include "EBGeometry_DCEL.hpp"
#include "EBGeometry_Pool.hpp"
#include "EBGeometry_Vec.hpp"
#include "EBGeometry_SoupImplem.hpp"
Include dependency graph for EBGeometry_Soup.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  EBGeometry
 Namespace containing all of EBGeometry's functionality.
 
namespace  EBGeometry::Soup
 Namespace containing basic functionality for turning planar-polygon soups into DCEL meshes.
 

Functions

template<typename T >
static bool EBGeometry::Soup::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.
 
template<typename T >
static bool EBGeometry::Soup::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.
 
template<typename T >
static std::vector< size_t > EBGeometry::Soup::compress (std::vector< EBGeometry::Vec3T< T > > &a_vertices, std::vector< std::vector< size_t > > &a_facets)
 Compress a polygon soup by removing duplicate vertices.
 
template<typename T >
static bool EBGeometry::Soup::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.
 
template<typename T >
static std::vector< size_t > EBGeometry::Soup::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 std::string EBGeometry::Soup::findRepeatedVertex (const std::vector< std::vector< size_t > > &a_facets)
 Find a polygon that visits a vertex twice.
 
static std::string EBGeometry::Soup::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.
 
template<typename T >
static std::string EBGeometry::Soup::findFoldedFeature (const EBGeometry::DCEL::MeshT< T > &a_mesh)
 Find an edge or vertex of a half-edge mesh whose pseudonormal is zero.
 
template<typename T >
static void EBGeometry::Soup::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.
 
template<typename T >
static void EBGeometry::Soup::reconcilePairEdgesDCEL (EBGeometry::DCEL::MeshT< T > &a_mesh)
 Reconcile pair edges: link each half-edge with its reverse.
 

Detailed Description

Declaration of polygon-soup utilities for building DCEL meshes.

Author
Robert Marskar