Internal class used by the STLsurfaceFormat and triSurface. More...
#include <STLReader.H>


Public Member Functions | |
| STLReader (const fileName &filename) | |
| Read from file, filling in the information. | |
| STLReader (const fileName &filename, const STLFormat format) | |
| Read from file, filling in the information. | |
| ~STLReader ()=default | |
| Destructor. | |
| void | clear () |
| Flush all values. | |
| label | mergePointsMap (labelList &pointMap) const |
| Calculate merge points mapping, return old to new pointMap. | |
| label | mergePointsMap (const scalar mergeTol, labelList &pointMap) const |
| Calculate merge points mapping, return old to new pointMap. | |
| bool | is_sorted () const noexcept |
| File read was already sorted? | |
| List< STLpoint > & | points () noexcept |
| Return full access to the points. | |
| List< label > & | zoneIds () noexcept |
| Return full access to the zoneIds. | |
| List< word > & | names () noexcept |
| The list of solid names in the order of their first appearance. | |
| List< label > & | sizes () noexcept |
| The list of solid sizes in the order of their first appearance. | |
| enum STLFormat | stlFormat () const noexcept |
| The STL format used (ASCII or BINARY). | |
Static Public Attributes | |
| static int | parserType |
| ASCII parser types (0=Flex, 1=Ragel, 2=Manual). | |
Additional Inherited Members | |
| Public Types inherited from STLCore | |
| enum | STLFormat { ASCII , BINARY , UNKNOWN } |
| Enumeration for the format of data in the stream. More... | |
| Protected Member Functions inherited from STLCore | |
| STLCore ()=default | |
| Default construct. | |
| Static Protected Member Functions inherited from STLCore | |
| static bool | isBinaryName (const fileName &filename, const STLFormat format) |
| Detect 'stlb' extension as binary when format = UNKNOWN. | |
| static int | detectBinaryHeader (const fileName &filename) |
| Check contents to detect if the file is a binary STL. | |
| static std::unique_ptr< std::istream > | readBinaryHeader (const fileName &filename, label &nTrisEstimated) |
| Read STL binary file header. | |
| static void | writeBinaryHeader (ostream &os, uint32_t nTris) |
| Write STL binary file and number of triangles to stream. | |
Internal class used by the STLsurfaceFormat and triSurface.
Definition at line 63 of file STLReader.H.
|
explicit |
Read from file, filling in the information.
Auto-detect ASCII/BINARY format.
Definition at line 200 of file STLReader.C.
References STLCore::UNKNOWN.
Read from file, filling in the information.
Manually selected choice of ASCII/BINARY/UNKNOWN(detect) formats.
Definition at line 217 of file STLReader.C.
References format(), and STLCore::UNKNOWN.

|
default |
Destructor.
| void clear | ( | ) |
| Foam::label mergePointsMap | ( | labelList & | pointMap | ) | const |
Calculate merge points mapping, return old to new pointMap.
The merge tolerance based on ASCII or BINARY input format.
Definition at line 248 of file STLReader.C.
References STLCore::BINARY, Foam::doubleScalarSMALL, and mergePointsMap().
Referenced by mergePointsMap(), and STLsurfaceFormat< Face >::read().


| Foam::label mergePointsMap | ( | const scalar | mergeTol, |
| labelList & | pointMap ) const |
Calculate merge points mapping, return old to new pointMap.
Definition at line 266 of file STLReader.C.
References Foam::mergePoints().

|
inlinenoexcept |
File read was already sorted?
Definition at line 204 of file STLReader.H.
References Foam::noexcept.
Referenced by STLsurfaceFormat< Face >::read().

Return full access to the points.
Definition at line 209 of file STLReader.H.
References Foam::noexcept.
Referenced by STLsurfaceFormat< Face >::read().

|
inlinenoexcept |
Return full access to the zoneIds.
Definition at line 214 of file STLReader.H.
References Foam::noexcept.
Referenced by STLsurfaceFormat< Face >::read().

The list of solid names in the order of their first appearance.
Definition at line 219 of file STLReader.H.
References Foam::noexcept.
Referenced by STLsurfaceFormat< Face >::read().

|
inlinenoexcept |
The list of solid sizes in the order of their first appearance.
Definition at line 224 of file STLReader.H.
References Foam::noexcept.
Referenced by STLsurfaceFormat< Face >::read().

|
inlinenoexcept |
The STL format used (ASCII or BINARY).
Definition at line 229 of file STLReader.H.
References Foam::noexcept.
|
static |
ASCII parser types (0=Flex, 1=Ragel, 2=Manual).
Definition at line 153 of file STLReader.H.