Go to the documentation of this file.
28 #include "triSurface.H"
46 <<
"Cannot read file " << OBJfileName
57 while (OBJfile.
good())
76 lineStream >>
x >>
y >> z;
89 if (findGroup != groupToPatch.end())
91 groupID = findGroup();
104 dynamicLabelList verts;
112 line.find_first_not_of(
' ', endNum);
114 if (startNum == string::npos)
119 endNum =
line.find(
' ', startNum);
122 if (endNum != string::npos)
124 vertexSpec =
line.substr(startNum, endNum-startNum);
128 vertexSpec =
line.substr(startNum,
line.size() - startNum);
134 if (slashPos != string::npos)
146 verts.append(vertI - 1);
153 for (
label fp = 1; fp < verts.size() - 1; fp++)
155 label fp1 = verts.fcIndex(fp);
157 labelledTri tri(verts[0], verts[fp], verts[fp1], groupID);
181 iter != groupToPatch.end();
const Field< point > & points() const
Return reference to global points.
A class for handling words, derived from string.
A class for handling file names.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
The geometricSurfacePatch is like patchIdentifier but for surfaces. Holds type, name and index.
bool readOBJ(const fileName &)
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
const char *const group
Group name for atomic constants.
const geometricSurfacePatchList & patches() const
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.
graph_traits< Graph >::vertices_size_type size_type
DynamicList< T, SizeInc, SizeMult, SizeDiv > & shrink()
Shrink the allocated space to the number of elements used.
Input from memory buffer stream.
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
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)
void setSize(const label)
Reset size of List.
iterator begin()
Iterator set to the beginning of the HashTable.
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.
vector point
Point is a vector.
bool good() const
Return true if next operation might succeed.
static string getLineNoComment(IFstream &)
Read non-comment line.