SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
quadquality.hpp File Reference
#include "meshkit/detail/planmodel.hpp"
#include <algorithm>
#include <cmath>
#include <limits>
Include dependency graph for quadquality.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  meshkit::plan::QuadQualityBounds
 Acceptance bounds shared by pairing, cleanup, smoothing and the legacy tri-pair merge. Defaults are the plan's (§5): hard 60°/120°, SJ ≥ 0.866, aspect ≤ 2. More...
 
struct  meshkit::plan::QuadQuality
 

Namespaces

namespace  meshkit
 
namespace  meshkit::plan
 
namespace  meshkit::plan::quadquality_detail
 

Functions

QuadQuality meshkit::plan::quadQuality (const Point2 &a, const Point2 &b, const Point2 &c, const Point2 &d)
 Measure one quadrilateral using cyclic corners and translation/scale-resistant planar arithmetic.
 
QuadQuality meshkit::plan::quadQuality (const Vector< MeshVertex > &vertices, const MeshTriangle &t)
 Measure a quad cell through its borrowed vertex records.
 
bool meshkit::plan::quadquality_detail::validMetrics (const QuadQuality &q)
 Check the internal finite/range/convexity invariants required before acceptance or scoring.
 
bool meshkit::plan::quadquality_detail::finiteBounds (const QuadQualityBounds &b)
 Check every supplied quality threshold is finite.
 
bool meshkit::plan::quadAcceptable (const QuadQuality &q, const QuadQualityBounds &b)
 Apply inclusive hard angle/Jacobian/aspect limits to a valid convex metric record.
 
double meshkit::plan::quadScore (const QuadQuality &q, const QuadQualityBounds &b)
 Rank valid convex quads by Jacobian, rectangularity and a soft aspect penalty.
 
double meshkit::plan::triangleScaledJacobian (const Point2 &a, const Point2 &b, const Point2 &c)
 Compute the minimum orientation-normalized corner sine of a triangle.
 
double meshkit::plan::cellCornerAngleDeg (const Vector< MeshVertex > &v, const MeshTriangle &t, int i)
 Compute the unsigned corner angle of a triangle or quad.