Loading...
Searching...
No Matches
sms2dmreader.h
Go to the documentation of this file.
1
14
15#ifndef OPENSWMMVIS_MESH_SMS2DMREADER_H
16#define OPENSWMMVIS_MESH_SMS2DMREADER_H
17
18#include "meshresult.h"
19
20#include <QString>
21#include <QStringList>
22
23namespace mesh
24{
25
34{
35public:
45 [[nodiscard]] static MeshResult read(const QString &path, bool splitQuads = false,
46 QStringList *warnings = nullptr);
47
68 [[nodiscard]] static MeshResult parse(const QString &text, bool splitQuads = false);
69
86 [[nodiscard]] static bool looksLikeSms2dm(const QString &path);
87};
88
89} // namespace mesh
90
91#endif // OPENSWMMVIS_MESH_SMS2DMREADER_H
Stateless reader that turns an SMS 2DM mesh (file or text) into a MeshResult.
Definition sms2dmreader.h:34
static bool looksLikeSms2dm(const QString &path)
Perform an early-card format sniff on at most 200 nonblank file lines.
Definition sms2dmreader.cpp:230
static MeshResult read(const QString &path, bool splitQuads=false, QStringList *warnings=nullptr)
Stream a bounded two-pass SMS file through meshkit::io.
Definition sms2dmreader.cpp:44
static MeshResult parse(const QString &text, bool splitQuads=false)
Decode case-sensitive ND/E3T/E4Q cards into owned vertices and engine-ordered cells.
Definition sms2dmreader.cpp:106
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...
Result of MeshGenerator::generate.
Definition meshresult.h:203