Go to the documentation of this file.
29 #include "triSurface.H"
47 <<
"Cannot read file " << OFFfileName
56 <<
"OFF file " << OFFfileName
57 <<
" does not start with 'OFF'"
79 lineStream >>
x >>
y >> z;
87 for (
label faceI = 0; faceI < nElems; faceI++)
108 else if (nVerts == 4)
119 f.triangles(
points, nTri, triFaces);
121 forAll(triFaces, triFaceI)
123 const face&
f = triFaces[triFaceI];
const Field< point > & points() const
Return reference to global points.
A class for handling file names.
#define forAll(list, i)
Loop across all elements in list.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
label nEdges() const
Return number of edges in patch.
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.
triSurface()
Construct null.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & shrink()
Shrink the allocated space to the number of elements used.
label nPoints() const
Return number of points supporting patch faces.
bool readOFF(const fileName &)
Input from memory buffer stream.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
errorManipArg< error, int > exit(error &err, const int errNo=1)
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.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
A face is a list of labels corresponding to mesh vertices.
vector point
Point is a vector.
bool good() const
Return true if next operation might succeed.
static string getLineNoComment(IFstream &)
Read non-comment line.