58 Ostream&
operator<<(Ostream&,
const triSurface&);
80 static const int STLheaderSize = 80;
100 void calcSortedEdgeFaces()
const;
103 void calcEdgeOwner()
const;
110 void setDefaultPatches();
116 const scalar tol = small,
117 const bool verbose =
false
120 scalar pointNormalWeight
139 bool read(
const fileName&,
const word& ext,
const bool check =
true);
143 bool readSTLBINARY(
const fileName&);
157 void writeSTLASCII(
const bool writeSorted,
Ostream&)
const;
160 void writeSTLBINARY(std::ostream&)
const;
164 void writeGTS(
const bool writeSorted,
Ostream&)
const;
169 void writeOBJ(
const bool writeSorted,
Ostream&)
const;
174 void writeOFF(
const bool writeSorted,
Ostream&)
const;
177 void writeVTK(
const bool writeSorted,
Ostream&)
const;
181 void writeTRI(
const bool writeSorted,
Ostream&)
const;
184 void writeSMESH(
const bool writeSorted,
Ostream&)
const;
196 const label defaultRegion = 0
203 const label defaultRegion = 0
207 static void printTriangle
216 static string getLineNoComment(
IFstream&);
361 void cleanup(
const bool verbose);
370 const label currentZone,
422 void write(
const fileName&,
const bool sortByRegion =
false)
const;
425 void write(
const Time&)
const;
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of faces which address into the list of points.
const Field< PointType > & pointNormals() const
Return point normals for patch.
const Field< PointType > & points() const
Return reference to global points.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Named list of face indices representing a sub-set of the mesh faces.
A class for handling file names.
Triangle with additional region number.
A class for handling character strings derived from std::string.
A class for managing temporary objects.
A triangular face using a FixedList of labels corresponding to mesh vertices.
triSurface point mesh for fields on triSurface points
label size() const
Return size.
Triangulated surface description with patch information.
virtual void scalePoints(const scalar)
Scale points. A non-positive factor is ignored.
static fileName triSurfInstance(const Time &)
Name of triSurface directory to use.
triSurface()
Construct null.
triSurface subsetMesh(const boolList &include, labelList &pointMap, labelList &faceMap) const
Return new surface. Returns pointMap, faceMap from.
friend Ostream & operator<<(Ostream &, const triSurface &)
pointField & storedPoints()
Non-const access to global points.
label markZones(const boolList &borderEdge, labelList &faceZone) const
(size and) fills faceZone with zone of face. Zone is area
tmp< scalarField > curvature() const
Return the curvature of surface at the points.
void operator=(const triSurface &)
void cleanup(const bool verbose)
Remove non-valid triangles.
const geometricSurfacePatchList & patches() const
void checkTriangles(const bool verbose)
Check/remove duplicate/degenerate triangles.
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.
void writeStats(Ostream &) const
Write some statistics.
faceList faces() const
Return the list of triangles as a faceList.
const labelList & edgeOwner() const
If 2 face neighbours: label of face where ordering of edge.
void subsetMeshMap(const boolList &include, labelList &pointMap, labelList &faceMap) const
'Create' sub mesh, including only faces for which
List< Face > & storedFaces()
Non-const access to the faces.
triSurface Mesh
Mesh type.
void clearPatchMeshAddr()
const labelListList & sortedEdgeFaces() const
Return edge-face addressing sorted (for edges with more than.
ClassName("triSurface")
Runtime type information.
virtual ~triSurface()
Destructor.
virtual void setPoints(const pointField &)
Move points.
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.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)