37 #ifndef Foam_STLAsciiParse_H 38 #define Foam_STLAsciiParse_H
Internal class used when parsing STL ASCII format.
DynamicList< word > & names() noexcept
Solid names in the order of their appearance.
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.
DynamicList< label > & sizes() noexcept
Solid sizes in the order of their appearance.
bool is_sorted() const noexcept
Do all the solid groups appear in order?
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_
int nVertexCmpt_
Current vertex component when reading 'vertex'.
DynamicList< label > sizes_
void endFacet()
Action on 'endfacet'.
STLpoint currVertex_
Scratch space for reading 'vertex'.
DynamicList< label > & facets() noexcept
A list of facet IDs (group IDs) corresponds to the number of triangles.
void resetVertex()
Reset vertex component to zero.
DynamicList< STLpoint > & points() noexcept
A list of unstitched triangle points.
A vertex point or facet normal representation for STL files.
HashTable< label > nameLookup_