24#ifndef OPENSWMMVIS_MESH_MESHPATCH_H
25#define OPENSWMMVIS_MESH_MESHPATCH_H
147 const QString &tag, QString *err =
nullptr);
162 const QString &tag, QString *err =
nullptr);
168 const QString &tag, QString *err =
nullptr);
176 double hAcross,
double alongAngleDeg,
const QString &tag,
177 QString *err =
nullptr);
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...
QPolygonF orderedPatchBoundary(const PatchMesh &pm, QString *err=nullptr)
Validate the complete patch and return its CCW boundary, without a repeated closing vertex.
Definition meshpatch.cpp:9
PatchMesh makeTransfinitePatch(const StructuredPatch &p, QString *err=nullptr)
Transfinite interpolation on the four straight sides.
Definition meshpatch.cpp:10
PatchMesh makeMappedPatch(const QPolygonF &ring, const QVector< int > &corners, double h, const QString &tag, QString *err=nullptr)
Split a CCW ring at the four corners (ring vertex indices, ring order) into polyline sides,...
Definition meshpatch.cpp:15
PatchMesh makeSweptPatch(const SweptPatch &p, QString *err=nullptr)
Sweep the centreline: (stations)×(across+1) vertices, (stations-1)×across quads.
Definition meshpatch.cpp:11
PatchMesh makeTransfinitePatchAtStations(const QVector< QVector< QPointF > > &sides, const QString &tag, QString *err=nullptr)
Coons patch whose boundary vertices are exactly the given side stations.
Definition meshpatch.cpp:14
PatchMesh makeBankPairPatch(const BankPairPatch &p, QString *err=nullptr)
Build a conforming strip between two simple, disjoint banks.
Definition meshpatch.cpp:12
QString validate(const StructuredPatch &p)
Input checks.
Definition meshpatch.cpp:6
Two open bank polylines with independently supplied directions.
Definition meshpatch.h:68
QVector< QPointF > bankA
First bank: open polyline of >= 2 finite points with no repeated consecutive point.
Definition meshpatch.h:73
QVector< QPointF > bankB
Second bank, same rules; must not touch or cross bankA.
Definition meshpatch.h:73
int across
Quads between the banks at every station; must be >= 1.
Definition meshpatch.h:74
QString tag
Copied to the generated patch and its quads.
Definition meshpatch.h:76
double along
Target station spacing in XY units; finite >= 0 (0 = union only).
Definition meshpatch.h:75
A polyline through a patch's vertices that must be reported as mesh edges with a marker — a conduit r...
Definition meshpatch.h:81
QVector< int > path
Local vertex indices, consecutive ones joined by quad edges.
Definition meshpatch.h:82
QString tag
Edge tag; empty = MeshGenerator resolves it from marker's constraint tag.
Definition meshpatch.h:84
int marker
Copied to each emitted MeshEdge::marker.
Definition meshpatch.h:83
A generated patch in local indices.
Definition meshpatch.h:88
QVector< MeshTriangle > quads
v3 >= 0, local indices.
Definition meshpatch.h:90
QString tag
Patch tag; MeshGenerator gives it to stitched quads whose own tag is empty.
Definition meshpatch.h:92
QVector< PatchLine > lines
Interior lines emitted as MeshResult::boundaryEdges with their marker and tag, and bounding region ta...
Definition meshpatch.h:95
QVector< QPair< int, int > > boundarySegments
Local index pairs around the patch.
Definition meshpatch.h:91
QVector< QPointF > xy
Vertex coordinates (caller XY units); local index = position.
Definition meshpatch.h:89
Four-sided patch: corners in cyclic order (either orientation); n subdivisions along corner0→corner1 ...
Definition meshpatch.h:41
QString tag
Copied verbatim to PatchMesh::tag and to every quad's tag.
Definition meshpatch.h:48
int n
Quads along corner0→corner1; must be >= 1 (the default 0 fails validate()).
Definition meshpatch.h:47
QVector< QPointF > corners
Exactly 4, cyclic.
Definition meshpatch.h:42
int m
Quads along corner0→corner3; >= 1, and (n+1)(m+1) must fit an int index.
Definition meshpatch.h:47
Swept patch: the centreline is offset ±width/2 (mitred at interior vertices) and cut into across quad...
Definition meshpatch.h:55
double along
Target station spacing in XY units; finite >= 0 (0 = vertices).
Definition meshpatch.h:59
QString tag
Copied verbatim to PatchMesh::tag and to every quad's tag.
Definition meshpatch.h:60
double width
Full strip width in XY units; must be finite and > 0.
Definition meshpatch.h:57
int across
Quads across the strip at every station; must be >= 1.
Definition meshpatch.h:58
QVector< QPointF > centreline
>= 2 points.
Definition meshpatch.h:56