Loading...
Searching...
No Matches
meshquadregion.cpp File Reference
#include "mesh/qtnative.h"
Include dependency graph for meshquadregion.cpp:

Namespaces

namespace  mesh
 The Qt-facing MeshKit API (meshkit::core_qt, meshkit::model_qt, meshkit::io_qt): mesh value types and cell attributes, the mesh generator, quad regions, matching and cleanup, mesh statistics, and the INP and 2DM mesh codecs.
 

Functions

QPolygonF mesh::normalizeRingCCW (const QPolygonF &ring)
 Copy a ring while dropping scale-fuzzy consecutive/closing duplicates and reversing negative area.
 
bool mesh::polylineIntersectsRect (const QVector< QPointF > &path, const QRectF &rect)
 Test whether any consecutive path segment meets a normalized closed rectangle.
 
double mesh::ringSignedArea (const QPolygonF &ring)
 Compute oriented shoelace area after translating corners to the first vertex.
 
bool mesh::pointInRing (const QPolygonF &ring, const QPointF &p)
 Test a point using a strict horizontal-ray odd-even crossing rule.
 
bool mesh::pointInRegion (const QPolygonF &ring, const QVector< QPolygonF > &holes, const QPointF &p)
 Combine outer-ring parity with exclusion by every supplied hole-ring parity.
 
bool mesh::ringIsSimple (const QPolygonF &ring)
 Reject proper nonadjacent edge crossings using plain double orientation signs.
 
QString mesh::validateQuadRegion (const QuadRegion &r, const QVector< QPolygonF > &domains, const QVector< QPolygonF > &holes)
 Check region authoring policy, normalized ring and sampled domain/hole containment.
 
QString mesh::validateQuadRegionsDisjoint (const QVector< QuadRegion > &regions)
 Check explicit region pairs for proper crossings or strictly interior sampled vertices.
 
QuadRegionMode mesh::classifyQuadRegion (const QPolygonF &ring, QVector< int > *corners, double cornerTolDeg=25.0, double rectilinearTolDeg=2.0)
 Heuristically classify normalized ring turns as Mapped, Submapped or Free.
 
QPolygonF mesh::resampleRing (const QPolygonF &ring, double h, double keepTurnDeg=0.0)
 Normalize a ring and insert equal-part subdivisions along all implicit closing edges.
 
double mesh::ringTurnDeg (const QPolygonF &ring, int i)
 Compute a signed exterior turn at one ring corner using adjacent edge cross/dot products.