PSLG quad regions (workplans/QUAD_MESHING_REDESIGN_PLAN_2026-09-06.md §3, §4.1): closed polygons inside the meshing domain where quadrilateral cells are prioritised. More...
#include "mesh/meshquadquality.h"#include <QPointF>#include <QPolygonF>#include <QRectF>#include <QString>#include <QVector>Go to the source code of this file.
Classes | |
| struct | mesh::QuadRegion |
| A polygon in which quadrilateral cells are requested, with its spacing, shape and tagging policy. More... | |
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. | |
Enumerations | |
| enum class | mesh::QuadRegionMode { mesh::Auto , mesh::Mapped , mesh::Submapped , mesh::Free , mesh::TrianglesOnly } |
| Requested (or classified) cell strategy of a QuadRegion. More... | |
Functions | |
| QuadQualityBounds | mesh::quadRegionQualityBounds (const QuadRegion ®ion, QuadQualityBounds global) |
| Copy global quality bounds and apply an explicitly nonnegative region aspect override. | |
| 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 > ®ions) |
| 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. | |
PSLG quad regions (workplans/QUAD_MESHING_REDESIGN_PLAN_2026-09-06.md §3, §4.1): closed polygons inside the meshing domain where quadrilateral cells are prioritised.
PSLG quad regions (workplans/QUAD_MESHING_REDESIGN_PLAN_2026-09-06.md §3, §4.1): closed polygons inside the meshing domain where quadrilateral cells are prioritised. Everything outside a region stays triangulated; the interface conforms because the region ring is a constraint loop in the same CDT.
This header holds the data model plus the pure-geometry helpers (validation, auto-classification, ring resampling). How a region is turned into cells lives in MeshGenerator::generate(): supported four-sided regions become structured patches, stitched into the surrounding constrained Delaunay triangulation.