Internal class used when parsing STL ASCII format. More...
#include <STLAsciiParse.H>


Public Member Functions | |
| STLAsciiParse (const label nTrisEstimated) | |
| Construct with the estimated number of triangles in the STL. | |
| void | clear () |
| Reset stored values. | |
| bool | is_sorted () const noexcept |
| Do all the solid groups appear in order? | |
| DynamicList< STLpoint > & | points () noexcept |
| A list of unstitched triangle points. | |
| DynamicList< label > & | facets () noexcept |
| A list of facet IDs (group IDs) corresponds to the number of triangles. | |
| DynamicList< word > & | names () noexcept |
| Solid names in the order of their appearance. | |
| DynamicList< label > & | sizes () noexcept |
| Solid sizes in the order of their appearance. | |
Protected Member Functions | |
| void | beginSolid (word solidName) |
| Action when entering 'solid'. | |
| void | beginFacet () |
| Action when entering 'facet'. | |
| void | resetVertex () |
| Reset vertex component to zero. | |
| bool | addVertexComponent (float val) |
| Add next vertex component. On each third call, adds the point. | |
| bool | addVertexComponent (const char *text) |
| Add next vertex component. On each third call, adds the point. | |
| void | endFacet () |
| Action on 'endfacet'. | |
| STLAsciiParse (const STLAsciiParse &)=delete | |
| No copy construct. | |
| void | operator= (const STLAsciiParse &)=delete |
| No copy assignment. | |
Protected Attributes | |
| bool | sorted_ |
| label | groupId_ |
| label | lineNum_ |
| int | nFacetPoints_ |
| The number of local points on the current facet. | |
| int | nVertexCmpt_ |
| Current vertex component when reading 'vertex'. | |
| STLpoint | currVertex_ |
| Scratch space for reading 'vertex'. | |
| 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.
References STLAsciiParse().
Referenced by operator=(), STLAsciiParse(), and STLAsciiParseManual::STLAsciiParseManual().


|
inline |
Construct with the estimated number of triangles in the STL.
Definition at line 129 of file STLAsciiParseI.H.
References facets_, groupId_, lineNum_, nFacetPoints_, nVertexCmpt_, points_, and sorted_.
|
inlineprotected |
Action when entering 'solid'.
Definition at line 23 of file STLAsciiParseI.H.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, groupId_, nameLookup_, names_, Foam::nl, sizes_, and sorted_.
Referenced by STLAsciiParseManual::execute().


|
inlineprotected |
Action when entering 'facet'.
Definition at line 57 of file STLAsciiParseI.H.
References nFacetPoints_, and nVertexCmpt_.
Referenced by STLAsciiParseManual::execute().

|
inlineprotected |
Reset vertex component to zero.
Definition at line 64 of file STLAsciiParseI.H.
References nVertexCmpt_.
|
inlineprotected |
Add next vertex component. On each third call, adds the point.
Definition at line 70 of file STLAsciiParseI.H.
References currVertex_, nFacetPoints_, nVertexCmpt_, and points_.
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 85 of file STLAsciiParseI.H.
References currVertex_, nFacetPoints_, nVertexCmpt_, and points_.
|
inlineprotected |
Action on 'endfacet'.
Definition at line 103 of file STLAsciiParseI.H.
References facets_, groupId_, nFacetPoints_, points_, and sizes_.
Referenced by STLAsciiParseManual::execute().

|
protecteddelete |
|
inline |
Reset stored values.
Definition at line 143 of file STLAsciiParseI.H.
References facets_, groupId_, lineNum_, nameLookup_, names_, nFacetPoints_, nVertexCmpt_, points_, sizes_, and sorted_.
|
inlinenoexcept |
Do all the solid groups appear in order?
Definition at line 150 of file STLAsciiParse.H.
References Foam::noexcept, and sorted_.
|
inlinenoexcept |
A list of unstitched triangle points.
Definition at line 155 of file STLAsciiParse.H.
References Foam::noexcept, and points_.
|
inlinenoexcept |
A list of facet IDs (group IDs) corresponds to the number of triangles.
Definition at line 161 of file STLAsciiParse.H.
References facets_, and Foam::noexcept.
|
inlinenoexcept |
Solid names in the order of their appearance.
Definition at line 166 of file STLAsciiParse.H.
References names_, and Foam::noexcept.
|
inlinenoexcept |
Solid sizes in the order of their appearance.
Definition at line 171 of file STLAsciiParse.H.
References Foam::noexcept, and sizes_.
|
protected |
Definition at line 56 of file STLAsciiParse.H.
Referenced by beginSolid(), clear(), is_sorted(), and STLAsciiParse().
|
protected |
Definition at line 57 of file STLAsciiParse.H.
Referenced by beginSolid(), clear(), endFacet(), and STLAsciiParse().
|
protected |
Definition at line 58 of file STLAsciiParse.H.
Referenced by clear(), STLAsciiParseManual::execute(), and STLAsciiParse().
|
protected |
The number of local points on the current facet.
Definition at line 63 of file STLAsciiParse.H.
Referenced by addVertexComponent(), addVertexComponent(), beginFacet(), clear(), endFacet(), and STLAsciiParse().
|
protected |
Current vertex component when reading 'vertex'.
Definition at line 68 of file STLAsciiParse.H.
Referenced by addVertexComponent(), addVertexComponent(), beginFacet(), clear(), resetVertex(), and STLAsciiParse().
|
protected |
Scratch space for reading 'vertex'.
Definition at line 73 of file STLAsciiParse.H.
Referenced by addVertexComponent(), and addVertexComponent().
|
protected |
Definition at line 75 of file STLAsciiParse.H.
Referenced by addVertexComponent(), addVertexComponent(), clear(), endFacet(), points(), and STLAsciiParse().
|
protected |
Definition at line 76 of file STLAsciiParse.H.
Referenced by clear(), endFacet(), facets(), and STLAsciiParse().
|
protected |
Definition at line 77 of file STLAsciiParse.H.
Referenced by beginSolid(), clear(), and names().
|
protected |
Definition at line 78 of file STLAsciiParse.H.
Referenced by beginSolid(), clear(), endFacet(), and sizes().
|
protected |
Definition at line 79 of file STLAsciiParse.H.
Referenced by beginSolid(), and clear().