37 #ifndef STLAsciiParse_H 38 #define STLAsciiParse_H 125 inline bool sorted()
const;
Internal class used when parsing STL ASCII format.
DynamicList< label > & facets()
A list of facet IDs (group IDs) corresponds to the number of triangles.
void beginSolid(word solidName)
Action when entering 'solid'.
DynamicList< word > names_
void beginFacet()
Action when entering 'facet'.
int nFacetPoints_
The number of local points on the current facet.
void operator=(const STLAsciiParse &)=delete
No copy assignment.
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.
DynamicList< label > facets_
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
A class for handling words, derived from Foam::string.
DynamicList< STLpoint > points_
DynamicList< word > & names()
Solid names in the order of their appearance.
int nVertexCmpt_
Current vertex component when reading 'vertex'.
DynamicList< label > sizes_
DynamicList< label > & sizes()
Solid sizes in the order of their appearance.
void endFacet()
Action on 'endfacet'.
STLpoint currVertex_
Scratch space for reading 'vertex'.
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?
A vertex point or facet normal representation for STL files.
HashTable< label > nameLookup_