Internal class used when parsing STL ASCII format. More...
Public Member Functions | |
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... | |
Protected Member Functions | |
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 | |
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< STLpoint > | points_ |
DynamicList< label > | facets_ |
DynamicList< word > | names_ |
DynamicList< label > | sizes_ |
HashTable< label > | nameLookup_ |
Internal class used when parsing STL ASCII format.
Definition at line 50 of file STLAsciiParse.H.
|
protecteddelete |
No copy construct.
|
inline |
From input stream and the approximate number of vertices in the STL.
Definition at line 128 of file STLAsciiParseI.H.
|
inlineprotected |
Action when entering 'solid'.
Definition at line 23 of file STLAsciiParseI.H.
References DynamicList< T, SizeMin >::append(), HashTable< T, Key, Hash >::cfind(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, STLAsciiParse::groupId_, HashTable< T, Key, Hash >::insert(), STLAsciiParse::nameLookup_, STLAsciiParse::names_, UList< T >::size(), STLAsciiParse::sizes_, and STLAsciiParse::sorted_.
Referenced by STLAsciiParseManual::execute().
|
inlineprotected |
Action when entering 'facet'.
Definition at line 56 of file STLAsciiParseI.H.
Referenced by STLAsciiParseManual::execute().
|
inlineprotected |
Reset vertex component to zero.
Definition at line 63 of file STLAsciiParseI.H.
|
inlineprotected |
Add next vertex component. On each third call, adds the point.
Definition at line 69 of file STLAsciiParseI.H.
Referenced by STLAsciiParseManual::execute().
|
inlineprotected |
Add next vertex component. On each third call, adds the point.
> safer, but slower: readFloat(text, currVertex_[nVertexCmpt_]);
Definition at line 84 of file STLAsciiParseI.H.
|
inlineprotected |
Action on 'endfacet'.
Definition at line 102 of file STLAsciiParseI.H.
Referenced by STLAsciiParseManual::execute().
|
protecteddelete |
No copy assignment.
|
inline |
Reset stored values.
Definition at line 142 of file STLAsciiParseI.H.
|
inline |
Do all the solid groups appear in order?
Definition at line 159 of file STLAsciiParseI.H.
|
inline |
A list of unstitched triangle points.
Definition at line 165 of file STLAsciiParseI.H.
|
inline |
A list of facet IDs (group IDs) corresponds to the number of triangles.
Definition at line 171 of file STLAsciiParseI.H.
|
inline |
Solid names in the order of their appearance.
Definition at line 177 of file STLAsciiParseI.H.
|
inline |
Solid sizes in the order of their appearance.
Definition at line 183 of file STLAsciiParseI.H.
|
protected |
Definition at line 56 of file STLAsciiParse.H.
Referenced by STLAsciiParse::beginSolid().
|
protected |
Definition at line 57 of file STLAsciiParse.H.
Referenced by STLAsciiParse::beginSolid().
|
protected |
Definition at line 58 of file STLAsciiParse.H.
Referenced by STLAsciiParseManual::execute().
|
protected |
The number of local points on the current facet.
Definition at line 63 of file STLAsciiParse.H.
|
protected |
Current vertex component when reading 'vertex'.
Definition at line 68 of file STLAsciiParse.H.
|
protected |
Scratch space for reading 'vertex'.
Definition at line 73 of file STLAsciiParse.H.
|
protected |
Definition at line 75 of file STLAsciiParse.H.
|
protected |
Definition at line 76 of file STLAsciiParse.H.
|
protected |
Definition at line 77 of file STLAsciiParse.H.
Referenced by STLAsciiParse::beginSolid().
|
protected |
Definition at line 78 of file STLAsciiParse.H.
Referenced by STLAsciiParse::beginSolid().
|
protected |
Definition at line 79 of file STLAsciiParse.H.
Referenced by STLAsciiParse::beginSolid().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.