Go to the documentation of this file.
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)
A class for handling words, derived from Foam::string.
void clear()
Reset stored values.
DynamicList< label > & sizes()
Solid sizes in the order of their appearance.
DynamicList< label > sizes_
void endFacet()
Action on 'endfacet'.
bool insert(const Key &key, const T &obj)
Copy insert a new entry, not overwriting existing entries.
bool sorted() const
Do all the solid groups appear in order?
DynamicList< label > & facets()
DynamicList< T, SizeMin > & append(const T &val)
Append an element to the end of this list.
STLAsciiParse(const STLAsciiParse &)=delete
No copy construct.
void resetVertex()
Reset vertex component to zero.
HashTable< label > nameLookup_
DynamicList< STLpoint > & points()
A list of unstitched triangle points.
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool addVertexComponent(float val)
Add next vertex component. On each third call, adds the point.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
DynamicList< word > & names()
Solid names in the order of their appearance.
const_iterator cfind(const Key &key) const
Find and return an const_iterator set at the hashed entry.
void beginSolid(word solidName)
Action when entering 'solid'.
void beginFacet()
Action when entering 'facet'.
DynamicList< word > names_