60 public PrimitivePatch<labelledTri, ::Foam::List, pointField, point>
79 static const int STLheaderSize = 80;
99 void calcSortedEdgeFaces()
const;
102 void calcEdgeOwner()
const;
109 void setDefaultPatches();
115 const scalar tol = SMALL,
116 const bool verbose =
false 123 bool read(
const fileName&,
const word& ext,
const bool check =
true);
127 bool readSTLBINARY(
const fileName&);
141 void writeSTLASCII(
const bool writeSorted,
Ostream&)
const;
144 void writeSTLBINARY(std::ostream&)
const;
148 void writeGTS(
const bool writeSorted,
Ostream&)
const;
153 void writeOBJ(
const bool writeSorted,
Ostream&)
const;
158 void writeOFF(
const bool writeSorted,
Ostream&)
const;
161 void writeVTK(
const bool writeSorted,
Ostream&)
const;
165 void writeTRI(
const bool writeSorted,
Ostream&)
const;
168 void writeSMESH(
const bool writeSorted,
Ostream&)
const;
174 void writeDX(
const bool,
Ostream&)
const;
175 void writeDXGeometry(
const bool,
Ostream&)
const;
176 void writeDXTrailer(
Ostream&)
const;
185 const label defaultRegion = 0
192 const label defaultRegion = 0
196 static void printTriangle
205 static string getLineNoComment(
IFstream&);
345 void cleanup(
const bool verbose);
354 const label currentZone,
394 void write(
const fileName&,
const bool sortByRegion =
false)
const;
397 void write(
const Time&)
const;
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
const labelList & edgeOwner() const
If 2 face neighbours: label of face where ordering of edge.
void clearPatchMeshAddr()
A subset of mesh faces organised as a primitive patch.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A simple container for copying or transferring objects of type <T>.
Triangulated surface description with patch information.
label markZones(const boolList &borderEdge, labelList &faceZone) const
(size and) fills faceZone with zone of face. Zone is area
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling character strings derived from std::string.
triSurface()
Construct null.
ClassName("triSurface")
Runtime type information.
vectorField pointField
pointField is a vectorField.
friend Ostream & operator<<(Ostream &, const triSurface &)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void checkEdges(const bool verbose)
Check triply (or more) connected edges.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Triangle with additional region number.
const geometricSurfacePatchList & patches() const
void subsetMeshMap(const boolList &include, labelList &pointMap, labelList &faceMap) const
'Create' sub mesh, including only faces for which
triSurface subsetMesh(const boolList &include, labelList &pointMap, labelList &faceMap) const
Return new surface. Returns pointMap, faceMap from.
List< Face > & storedFaces()
Non-const access to the faces.
void operator=(const triSurface &)
pointField & storedPoints()
Non-const access to global points.
A list of faces which address into the list of points.
static fileName triSurfInstance(const Time &)
Name of triSurface directory to use.
const labelListList & sortedEdgeFaces() const
Return edge-face addressing sorted (for edges with more than.
A class for handling file names.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void movePoints(const pointField &)
Move points.
void checkTriangles(const bool verbose)
Check/remove duplicate/degenerate triangles.
void cleanup(const bool verbose)
Remove non-valid triangles.
void markZone(const boolList &borderEdge, const label faceI, const label currentZone, labelList &faceZone) const
Fill faceZone with currentZone for every face reachable.
bool BoundaryMesh
Placeholder only, but do not remove - it is needed for GeoMesh.
void writeStats(Ostream &) const
Write some statistics.
const Field< point > & points() const
Return reference to global points.
virtual void scalePoints(const scalar)
Scale points. A non-positive factor is ignored.