Pairing triangles into quads inside a quad region (workplans/QUAD_MESHING_REDESIGN_PLAN_2026-09-06.md §4.4f) — no external library. More...
#include "mesh/meshquadquality.h"#include "mesh/meshresult.h"#include <QPair>#include <QSet>#include <QVector>Go to the source code of this file.
Classes | |
| struct | mesh::QuadTemplate |
| Four vertex ids in cyclic (CCW) order, indexed into the generated mesh passed to pairTrianglesIntoQuads(). More... | |
| struct | mesh::QuadPairingOptions |
| Policy for pairTrianglesIntoQuads(). More... | |
| struct | mesh::QuadPairingStats |
| Counts reported by pairTrianglesIntoQuads(). 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. | |
Functions | |
| QuadPairingStats | mesh::pairTrianglesIntoQuads (MeshResult &mesh, const QVector< int > &cellIds, const QVector< QuadTemplate > &templates, const QSet< QPair< int, int > > &lockedEdges, const QuadPairingOptions &opts, QVector< int > *oldToNew) |
| Pair selected valid triangle rows into acceptable CCW quads, then rebuild engine cell order. | |
| QVector< int > | mesh::maximumMatching (int n, const QVector< QPair< int, int > > &edges) |
| Compute an unweighted maximum-cardinality matching in an undirected general graph. | |
| bool | mesh::unionQuad (const QVector< MeshVertex > &vertices, const MeshTriangle &t1, const MeshTriangle &t2, MeshTriangle &quad) |
| Form and convexity-check a CCW quadrilateral candidate from two triangle records. | |
Pairing triangles into quads inside a quad region (workplans/QUAD_MESHING_REDESIGN_PLAN_2026-09-06.md §4.4f) — no external library.
Pairing triangles into quads inside a quad region (workplans/QUAD_MESHING_REDESIGN_PLAN_2026-09-06.md §4.4f) — no external library:
Output honours the engine cell order (triangles first, then quads; existing quads keep their relative order after the new ones are appended behind them — see meshquadmerge.cpp for the same rebuild) and emits every quad CCW. Callers pass all cells of the mesh; only cellIds are touched.