60 Ostream&
operator<<(Ostream&,
const triSurface&);
82 static const int STLheaderSize = 80;
102 void calcSortedEdgeFaces()
const;
105 void calcEdgeOwner()
const;
112 void setDefaultPatches();
118 const scalar tol = small,
119 const bool verbose =
false 122 scalar pointNormalWeight
141 bool read(
const fileName&,
const word& ext,
const bool check =
true);
145 bool readSTLBINARY(
const fileName&);
159 void writeSTLASCII(
const bool writeSorted,
Ostream&)
const;
162 void writeSTLBINARY(std::ostream&)
const;
166 void writeGTS(
const bool writeSorted,
Ostream&)
const;
171 void writeOBJ(
const bool writeSorted,
Ostream&)
const;
176 void writeOFF(
const bool writeSorted,
Ostream&)
const;
179 void writeVTK(
const bool writeSorted,
Ostream&)
const;
183 void writeTRI(
const bool writeSorted,
Ostream&)
const;
186 void writeSMESH(
const bool writeSorted,
Ostream&)
const;
198 const label defaultRegion = 0
205 const label defaultRegion = 0
209 static void printTriangle
218 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;
void cleanup(const bool verbose)
Remove non-valid triangles.
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 &)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
tmp< scalarField > curvature() const
Return the curvature of surface at the points.
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.
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.
const labelListList & sortedEdgeFaces() const
Return edge-face addressing sorted (for edges with more than.
void writeStats(Ostream &) const
Write some statistics.
A class for handling words, derived from string.
A triangular face using a FixedList of labels corresponding to mesh vertices.
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.
const Field< PointType > & points() const
Return reference to global points.
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...
void markZone(const boolList &borderEdge, const label facei, const label currentZone, labelList &faceZone) const
Fill faceZone with currentZone for every face reachable.
const Field< PointType > & pointNormals() const
Return point normals for patch.
const geometricSurfacePatchList & patches() const
triSurface()
Construct null.
void subsetMeshMap(const boolList &include, labelList &pointMap, labelList &faceMap) const
'Create' sub mesh, including only faces for which
Ostream & operator<<(Ostream &, const ensightPart &)
bool BoundaryMesh
Placeholder only, but do not remove - it is needed for GeoMesh.
faceList faces() const
Return the list of triangles as a faceList.
A subset of mesh faces organised as a primitive patch.
label markZones(const boolList &borderEdge, labelList &faceZone) const
(size and) fills faceZone with zone of face. Zone is area
A class for managing temporary objects.
triSurface subsetMesh(const boolList &include, labelList &pointMap, labelList &faceMap) const
Return new surface. Returns pointMap, faceMap from.
Triangulated surface description with patch information.
const labelList & edgeOwner() const
If 2 face neighbours: label of face where ordering of edge.
A class for handling character strings derived from std::string.