37#ifndef STLAsciiParse_H
38#define STLAsciiParse_H
125 inline bool sorted()
const;
Internal class used when parsing STL ASCII format.
DynamicList< label > facets_
void beginFacet()
Action when entering 'facet'.
bool sorted() const
Do all the solid groups appear in order?
DynamicList< STLpoint > & points()
A list of unstitched triangle points.
HashTable< label > nameLookup_
void beginSolid(word solidName)
Action when entering 'solid'.
bool addVertexComponent(float val)
Add next vertex component. On each third call, adds the point.
STLpoint currVertex_
Scratch space for reading 'vertex'.
int nFacetPoints_
The number of local points on the current facet.
DynamicList< word > names_
void endFacet()
Action on 'endfacet'.
STLAsciiParse(const STLAsciiParse &)=delete
No copy construct.
DynamicList< STLpoint > points_
DynamicList< label > sizes_
int nVertexCmpt_
Current vertex component when reading 'vertex'.
void clear()
Reset stored values.
void resetVertex()
Reset vertex component to zero.
DynamicList< label > & sizes()
Solid sizes in the order of their appearance.
void operator=(const STLAsciiParse &)=delete
No copy assignment.
DynamicList< word > & names()
Solid names in the order of their appearance.
DynamicList< label > & facets()
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
A HashTable similar to std::unordered_map.
A vertex point or facet normal representation for STL files.
A class for handling words, derived from Foam::string.