Loading...
Searching...
No Matches
meshpatch.cpp File Reference
#include "mesh/qtnative.h"
Include dependency graph for meshpatch.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

QString mesh::validate (const StructuredPatch &p)
 Input checks.
 
QString mesh::validate (const SweptPatch &p)
 Check a swept patch's inputs and its representable station, cell and boundary counts.
 
QString mesh::validate (const PatchMesh &pm)
 Requires finite convex CCW quads, consistently shared cell edges, and one simple boundary matching exactly the outer cell edges.
 
QPolygonF mesh::orderedPatchBoundary (const PatchMesh &pm, QString *err=nullptr)
 Validate the complete patch and return its CCW boundary, without a repeated closing vertex.
 
PatchMesh mesh::makeTransfinitePatch (const StructuredPatch &p, QString *err=nullptr)
 Transfinite interpolation on the four straight sides.
 
PatchMesh mesh::makeSweptPatch (const SweptPatch &p, QString *err=nullptr)
 Sweep the centreline: (stations)×(across+1) vertices, (stations-1)×across quads.
 
PatchMesh mesh::makeBankPairPatch (const BankPairPatch &p, QString *err=nullptr)
 Build a conforming strip between two simple, disjoint banks.
 
PatchMesh mesh::makeTransfinitePatch (const QVector< QVector< QPointF > > &sides, int n, int m, const QString &tag, QString *err=nullptr)
 Transfinite (Coons) interpolation on four POLYLINE sides forming a loop: sides[0] runs c0→c1, sides[1] c1→c2, sides[2] c2→c3, sides[3] c3→c0 (each side's last point equals the next side's first).
 
PatchMesh mesh::makeTransfinitePatchAtStations (const QVector< QVector< QPointF > > &sides, const QString &tag, QString *err=nullptr)
 Coons patch whose boundary vertices are exactly the given side stations.
 
PatchMesh mesh::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, choose n = max(1, round(mean(len0, len2)/h)), m likewise from sides 1/3, and call the polyline overload.
 
PatchMesh mesh::makeMappedPatch (const QPolygonF &ring, const QVector< int > &corners, double hAlong, double hAcross, double alongAngleDeg, const QString &tag, QString *err=nullptr)
 Mapped patch with independent physical-axis spacing.