Loading...
Searching...
No Matches
meshquadcleanup.h
Go to the documentation of this file.
1
39
40#ifndef OPENSWMMVIS_MESH_MESHQUADCLEANUP_H
41#define OPENSWMMVIS_MESH_MESHQUADCLEANUP_H
42
44#include "mesh/meshresult.h"
45
46#include <QSet>
47#include <QVector>
48
49namespace mesh
50{
51
63
73
105QuadCleanupStats cleanupAndSmoothQuads(MeshResult &mesh, const QSet<int> &movable,
106 const QuadCleanupOptions &opts,
107 QVector<int> *vertexOldToNew);
108
124
125} // namespace mesh
126
127#endif // OPENSWMMVIS_MESH_MESHQUADCLEANUP_H
Quadrilateral quality metrics (workplans/QUAD_MESHING_REDESIGN_PLAN_2026-09-06.md ยง5).
value types for the 2D mesh generator.
The Qt-facing MeshKit API (meshkit::core_qt, meshkit::model_qt, meshkit::io_qt): mesh value types and...
QVector< int > reorderTrianglesFirst(MeshResult &mesh)
Stable-partition cell rows into triangles followed by quads and remap selected cell metadata.
Definition meshquadcleanup.cpp:607
QuadCleanupStats cleanupAndSmoothQuads(MeshResult &mesh, const QSet< int > &movable, const QuadCleanupOptions &opts, QVector< int > *vertexOldToNew)
Remove eligible quad doublets, improve valence diagonals, smooth movable xy and compact/reorder cells...
Definition meshquadcleanup.cpp:628
Result of MeshGenerator::generate.
Definition meshresult.h:203
Policy for cleanupAndSmoothQuads().
Definition meshquadcleanup.h:53
int topologyPasses
Maximum doublet + swap rounds; stops early when a round changes nothing; <= 0 = none.
Definition meshquadcleanup.h:61
bool diagonalSwaps
Re-diagonalise quad pairs when it lowers valence error.
Definition meshquadcleanup.h:58
QuadQualityBounds bounds
Quads produced by a doublet merge or diagonal swap must pass these bounds; smoothing uses their scale...
Definition meshquadcleanup.h:56
bool removeDoublets
Merge the two quads around each movable doublet vertex.
Definition meshquadcleanup.h:57
int smoothingIterations
Jacobi smoothing sweeps after topology; <= 0 = none.
Definition meshquadcleanup.h:59
Counts reported by cleanupAndSmoothQuads().
Definition meshquadcleanup.h:65
int diagonalSwaps
Quad-pair diagonal swaps adopted.
Definition meshquadcleanup.h:67
int verticesMoved
Accepted moves summed over iterations.
Definition meshquadcleanup.h:68
int doubletsRemoved
Doublet vertices removed (each merges two quads into one).
Definition meshquadcleanup.h:66
int movesRejected
Smoothing moves refused by the quality guard or reverted after the simultaneous apply,...
Definition meshquadcleanup.h:71
Acceptance bounds shared by pairing, cleanup, smoothing and the legacy tri-pair merge.
Definition meshquadquality.h:37