59 Ostream&
operator<<(Ostream&,
const triSurface&);
68 public PrimitivePatch<labelledTri, ::Foam::List, pointField, point>
87 static const int STLheaderSize = 80;
107 void calcSortedEdgeFaces()
const;
110 void calcEdgeOwner()
const;
117 void setDefaultPatches();
123 const scalar tol = SMALL,
124 const bool verbose =
false 131 bool read(
const fileName&,
const word& ext,
const bool check =
true);
135 bool readSTLBINARY(
const fileName&);
149 void writeSTLASCII(
const bool writeSorted,
Ostream&)
const;
152 void writeSTLBINARY(std::ostream&)
const;
156 void writeGTS(
const bool writeSorted,
Ostream&)
const;
161 void writeOBJ(
const bool writeSorted,
Ostream&)
const;
166 void writeOFF(
const bool writeSorted,
Ostream&)
const;
169 void writeVTK(
const bool writeSorted,
Ostream&)
const;
173 void writeTRI(
const bool writeSorted,
Ostream&)
const;
176 void writeSMESH(
const bool writeSorted,
Ostream&)
const;
182 void writeDX(
const bool,
Ostream&)
const;
183 void writeDXGeometry(
const bool,
Ostream&)
const;
184 void writeDXTrailer(
Ostream&)
const;
193 const label defaultRegion = 0
200 const label defaultRegion = 0
204 static void printTriangle
213 static string getLineNoComment(
IFstream&);
353 void cleanup(
const bool verbose);
362 const label currentZone,
402 void write(
const fileName&,
const bool sortByRegion =
false)
const;
405 void write(
const Time&)
const;
label markZones(const boolList &borderEdge, labelList &faceZone) const
(size and) fills faceZone with zone of face. Zone is area
A simple container for copying or transferring objects of type <T>.
void cleanup(const bool verbose)
Remove non-valid triangles.
void subsetMeshMap(const boolList &include, labelList &pointMap, labelList &faceMap) const
'Create' sub mesh, including only faces for which
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 file names.
friend Ostream & operator<<(Ostream &, const triSurface &)
void operator=(const triSurface &)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void writeStats(Ostream &) const
Write some statistics.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
const Field< point > & points() const
Return reference to global points.
const labelListList & sortedEdgeFaces() const
Return edge-face addressing sorted (for edges with more than.
virtual void scalePoints(const scalar)
Scale points. A non-positive factor is ignored.
void clearPatchMeshAddr()
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
virtual void movePoints(const pointField &)
Move points.
const labelList & edgeOwner() const
If 2 face neighbours: label of face where ordering of edge.
A list of faces which address into the list of points.
static fileName triSurfInstance(const Time &)
Name of triSurface directory to use.
ClassName("triSurface")
Runtime type information.
vectorField pointField
pointField is a vectorField.
A class for handling words, derived from string.
const geometricSurfacePatchList & patches() const
void checkTriangles(const bool verbose)
Check/remove duplicate/degenerate triangles.
List< Face > & storedFaces()
Non-const access to the faces.
void checkEdges(const bool verbose)
Check triply (or more) connected edges.
void markZone(const boolList &borderEdge, const label facei, const label currentZone, labelList &faceZone) const
Fill faceZone with currentZone for every face reachable.
Triangle with additional region number.
pointField & storedPoints()
Non-const access to global points.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
triSurface()
Construct null.
triSurface subsetMesh(const boolList &include, labelList &pointMap, labelList &faceMap) const
Return new surface. Returns pointMap, faceMap from.
Ostream & operator<<(Ostream &, const ensightPart &)
bool BoundaryMesh
Placeholder only, but do not remove - it is needed for GeoMesh.
A subset of mesh faces organised as a primitive patch.
Triangulated surface description with patch information.
A class for handling character strings derived from std::string.