Public Member Functions | List of all members
STLAsciiParseManual Class Reference

A lexer for parsing STL ASCII files. More...

Inheritance diagram for STLAsciiParseManual:
Inheritance graph
[legend]
Collaboration diagram for STLAsciiParseManual:
Collaboration graph
[legend]

Public Member Functions

 STLAsciiParseManual (const label approxNpoints)
 From input stream and the approximate number of vertices in the STL. More...
 
void execute (std::istream &is)
 Execute parser. More...
 
- Public Member Functions inherited from STLAsciiParse
 STLAsciiParse (const label approxNpoints)
 From input stream and the approximate number of vertices in the STL. More...
 
void clear ()
 Reset stored values. More...
 
bool sorted () const
 Do all the solid groups appear in order? More...
 
DynamicList< STLpoint > & points ()
 A list of unstitched triangle points. More...
 
DynamicList< label > & facets ()
 A list of facet IDs (group IDs) corresponds to the number of triangles. More...
 
DynamicList< word > & names ()
 Solid names in the order of their appearance. More...
 
DynamicList< label > & sizes ()
 Solid sizes in the order of their appearance. More...
 

Additional Inherited Members

- Protected Member Functions inherited from STLAsciiParse
void beginSolid (word solidName)
 Action when entering 'solid'. More...
 
void beginFacet ()
 Action when entering 'facet'. More...
 
void resetVertex ()
 Reset vertex component to zero. More...
 
bool addVertexComponent (float val)
 Add next vertex component. On each third call, adds the point. More...
 
bool addVertexComponent (const char *text)
 Add next vertex component. On each third call, adds the point. More...
 
void endFacet ()
 Action on 'endfacet'. More...
 
 STLAsciiParse (const STLAsciiParse &)=delete
 No copy construct. More...
 
void operator= (const STLAsciiParse &)=delete
 No copy assignment. More...
 
- Protected Attributes inherited from STLAsciiParse
bool sorted_
 
label groupId_
 
label lineNum_
 
int nFacetPoints_
 The number of local points on the current facet. More...
 
int nVertexCmpt_
 Current vertex component when reading 'vertex'. More...
 
STLpoint currVertex_
 Scratch space for reading 'vertex'. More...
 
DynamicList< STLpointpoints_
 
DynamicList< label > facets_
 
DynamicList< wordnames_
 
DynamicList< label > sizes_
 
HashTable< label > nameLookup_
 

Detailed Description

A lexer for parsing STL ASCII files.

Returns DynamicList(s) of points and facets (zoneIds). The facets are within a solid/endsolid grouping

Definition at line 57 of file STLAsciiParseManual.C.

Constructor & Destructor Documentation

◆ STLAsciiParseManual()

STLAsciiParseManual ( const label  approxNpoints)
inline

From input stream and the approximate number of vertices in the STL.

Definition at line 134 of file STLAsciiParseManual.C.

Member Function Documentation

◆ execute()

void execute ( std::istream &  is)

The documentation for this class was generated from the following file: