32 if (solidName.empty())
78 currVertex_[nVertexCmpt_] = val;
80 if (++nVertexCmpt_ == 3)
82 points_.append(currVertex_);
94 currVertex_[nVertexCmpt_] = ::atof(text);
96 if (++nVertexCmpt_ == 3)
98 points_.append(currVertex_);
103 return !nVertexCmpt_;
109 if (nFacetPoints_ == 3)
111 facets_.append(groupId_);
116 if (nFacetPoints_ > 3)
123 points_.resize(points_.size() - nFacetPoints_);
140 points_(approxNpoints),
141 facets_(approxNpoints/2)
void size(const label n)
Older name for setAddressableSize.
DynamicList< label > & facets()
A list of facet IDs (group IDs) corresponds to the number of triangles.
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'.
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.
void append(const T &val)
Copy append an element to the end of this list.
DynamicList< word > & names()
Solid names in the order of their appearance.
DynamicList< label > sizes_
DynamicList< label > & sizes()
Solid sizes in the order of their appearance.
void endFacet()
Action on 'endfacet'.
void resetVertex()
Reset vertex component to zero.
DynamicList< STLpoint > & points()
A list of unstitched triangle points.
bool sorted() const
Do all the solid groups appear in order?
HashTable< label > nameLookup_