Internal class used by the STLsurfaceFormat. More...
Public Member Functions | |
STLsurfaceFormatCore (const fileName &) | |
Read from file, filling in the information. More... | |
~STLsurfaceFormatCore () | |
Destructor. More... | |
bool | sorted () const |
File read was already sorted. More... | |
void | clear () |
Flush all values. More... | |
pointField & | points () |
Return full access to the points. More... | |
List< label > & | zoneIds () |
Return full access to the zoneIds. More... | |
List< word > & | names () |
The list of solid names in the order of their first appearance. More... | |
List< label > & | sizes () |
The list of solid sizes in the order of their first appearance. More... | |
Static Public Member Functions | |
static void | writeHeaderBINARY (ostream &, unsigned int) |
Write "STL binary file" and number of triangles to stream. More... | |
Static Public Attributes | |
static const unsigned int | headerSize = 80 |
The number of bytes in the STL binary header. More... | |
Private Member Functions | |
STLsurfaceFormatCore (const STLsurfaceFormatCore &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const STLsurfaceFormatCore &) |
Disallow default bitwise assignment. More... | |
bool | readASCII (istream &, const off_t) |
Read ASCII. More... | |
bool | readBINARY (istream &, const off_t) |
Read BINARY. More... | |
Static Private Member Functions | |
static int | detectBINARY (const fileName &) |
Determine the file type. More... | |
Private Attributes | |
bool | sorted_ |
pointField | points_ |
The points supporting the facets. More... | |
List< label > | zoneIds_ |
The zones associated with the faces. More... | |
List< word > | names_ |
The solid names, in the order of their first appearance. More... | |
List< label > | sizes_ |
The solid count, in the order of their first appearance. More... | |
Internal class used by the STLsurfaceFormat.
Definition at line 54 of file STLsurfaceFormatCore.H.
|
private |
Disallow default bitwise copy construct.
STLsurfaceFormatCore | ( | const fileName & | filename | ) |
Read from file, filling in the information.
Definition at line 210 of file STLsurfaceFormatCore.C.
References Foam::fileSize().
~STLsurfaceFormatCore | ( | ) |
Destructor.
Definition at line 244 of file STLsurfaceFormatCore.C.
|
private |
Disallow default bitwise assignment.
|
staticprivate |
Determine the file type.
Definition at line 44 of file STLsurfaceFormatCore.C.
References Foam::fileSize(), and IFstream::stdStream().
|
private |
Read ASCII.
|
private |
Read BINARY.
Definition at line 90 of file STLsurfaceFormatCore.C.
References STLtriangle::a(), DynamicList::append(), STLtriangle::attrib(), STLtriangle::b(), STLtriangle::c(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, lookup(), Foam::nl, and STLtriangle::normal().
|
static |
Write "STL binary file" and number of triangles to stream.
Definition at line 251 of file STLsurfaceFormatCore.C.
|
inline |
File read was already sorted.
Definition at line 118 of file STLsurfaceFormatCore.H.
References STLsurfaceFormatCore::sorted_.
Referenced by STLsurfaceFormat< Face >::read().
|
inline |
Flush all values.
Definition at line 124 of file STLsurfaceFormatCore.H.
References List::clear(), STLsurfaceFormatCore::names_, STLsurfaceFormatCore::points_, STLsurfaceFormatCore::sizes_, STLsurfaceFormatCore::sorted_, and STLsurfaceFormatCore::zoneIds_.
|
inline |
Return full access to the points.
Definition at line 134 of file STLsurfaceFormatCore.H.
References STLsurfaceFormatCore::points_.
Referenced by STLsurfaceFormat< Face >::read().
Return full access to the zoneIds.
Definition at line 140 of file STLsurfaceFormatCore.H.
References STLsurfaceFormatCore::zoneIds_.
Referenced by STLsurfaceFormat< Face >::read().
The list of solid names in the order of their first appearance.
Definition at line 146 of file STLsurfaceFormatCore.H.
References STLsurfaceFormatCore::names_.
Referenced by STLsurfaceFormat< Face >::read().
The list of solid sizes in the order of their first appearance.
Definition at line 152 of file STLsurfaceFormatCore.H.
References STLsurfaceFormatCore::sizes_.
Referenced by STLsurfaceFormat< Face >::read().
|
private |
Definition at line 58 of file STLsurfaceFormatCore.H.
Referenced by STLsurfaceFormatCore::clear(), and STLsurfaceFormatCore::sorted().
|
private |
The points supporting the facets.
Definition at line 61 of file STLsurfaceFormatCore.H.
Referenced by STLsurfaceFormatCore::clear(), and STLsurfaceFormatCore::points().
The zones associated with the faces.
Definition at line 64 of file STLsurfaceFormatCore.H.
Referenced by STLsurfaceFormatCore::clear(), and STLsurfaceFormatCore::zoneIds().
The solid names, in the order of their first appearance.
Definition at line 67 of file STLsurfaceFormatCore.H.
Referenced by STLsurfaceFormatCore::clear(), and STLsurfaceFormatCore::names().
The solid count, in the order of their first appearance.
Definition at line 70 of file STLsurfaceFormatCore.H.
Referenced by STLsurfaceFormatCore::clear(), and STLsurfaceFormatCore::sizes().
|
static |
The number of bytes in the STL binary header.
Definition at line 96 of file STLsurfaceFormatCore.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.