Go to the documentation of this file.
28 #include "triSurface.H"
46 <<
"Cannot read file " << GTSfileName
69 lineStream >>
x >>
y >> z;
82 lineStream >> start >> end;
91 label e0Label, e1Label, e2Label;
97 lineStream >> e0Label >> e1Label >> e2Label;
104 if (!lineStream.
bad())
123 <<
"Edges 0 and 1 of triangle " << trianglei
124 <<
" do not share a point.\n"
125 <<
" edge0:" << e0 <<
endl
137 <<
"Edges 1 and 2 of triangle " << trianglei
138 <<
" do not share a point.\n"
139 <<
" edge1:" << e1 <<
endl
146 if ((common12 != e1Far) || (e2Far != e0Far))
149 <<
"Edges of triangle " << trianglei
150 <<
" reference more than three points.\n"
151 <<
" edge0:" << e0 <<
endl
152 <<
" edge1:" << e1 <<
endl
153 <<
" edge2:" << e2 <<
endl
157 operator[](trianglei) =
labelledTri(e0Far, common01, e1Far, region);
const Field< point > & points() const
Return reference to global points.
A class for handling file names.
const edgeList & edges() const
Return list of edges, address into LOCAL point list.
#define forAll(list, i)
Loop across all elements in list.
label nEdges() const
Return number of edges in patch.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool readGTS(const fileName &)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
label nPoints() const
Return number of points supporting patch faces.
bool bad() const
Return true if stream is corrupted.
Input from memory buffer stream.
label commonVertex(const edge &a) const
Return common vertex.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void setDefaultPatches()
Sets default values for patches.
void setSize(const label)
Reset size of List.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Triangle with additional region number.
pointField points_
Reference to global list of points.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
vector point
Point is a vector.
bool good() const
Return true if next operation might succeed.
label otherVertex(const label a) const
Given one vertex, return the other.
static string getLineNoComment(IFstream &)
Read non-comment line.