32 if (solidName.empty())
57 <<
"Duplicate solid-name: " << solidName <<
nl 79 currVertex_[nVertexCmpt_] = val;
81 if (++nVertexCmpt_ == 3)
83 points_.push_back(currVertex_);
95 currVertex_[nVertexCmpt_] = ::atof(text);
97 if (++nVertexCmpt_ == 3)
99 points_.push_back(currVertex_);
104 return !nVertexCmpt_;
110 if (nFacetPoints_ == 3)
112 facets_.push_back(groupId_);
117 if (nFacetPoints_ > 3)
124 points_.resize(points_.size() - nFacetPoints_);
141 points_(3*nTrisEstimated),
142 facets_(nTrisEstimated)
void size(const label n)
Older name for setAddressableSize.
void beginSolid(word solidName)
Action when entering 'solid'.
errorManipArg< error, int > exit(error &err, const int errNo=1)
DynamicList< word > names_
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void beginFacet()
Action when entering 'facet'.
constexpr char nl
The newline '\n' character (0x0a)
STLAsciiParse(const STLAsciiParse &)=delete
No copy construct.
bool addVertexComponent(float val)
Add next vertex component. On each third call, adds the point.
void clear()
Reset stored values.
bool insert(const Key &key, const T &obj)
Copy insert a new entry, not overwriting existing entries.
const_iterator cfind(const Key &key) const
Find and return an const_iterator set at the hashed entry.
A class for handling words, derived from Foam::string.
DynamicList< label > sizes_
void push_back(const T &val)
Copy append an element to the end of this list.
void endFacet()
Action on 'endfacet'.
void resetVertex()
Reset vertex component to zero.
HashTable< label > nameLookup_