Core routines used when reading/writing STL files. More...
Public Types | |
enum | STLFormat { ASCII, BINARY, UNKNOWN } |
Protected Member Functions | |
STLCore ()=default | |
Static Protected Member Functions | |
static bool | isBinaryName (const fileName &filename, const STLFormat format) |
static int | detectBinaryHeader (const fileName &filename) |
static std::unique_ptr< std::istream > | readBinaryHeader (const fileName &filename, label &nTrisEstimated) |
static void | writeBinaryHeader (ostream &os, uint32_t nTris) |
Core routines used when reading/writing STL files.
enum STLFormat |
|
protecteddefault |
Definition at line 60 of file STLCore.C.
References format(), and fileName::hasExt().
|
staticprotected |
Definition at line 81 of file STLCore.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::fileSize(), startsWithSolid(), STLHeaderSize, and ifstreamPointer::whichCompression().
|
staticprotected |
Definition at line 141 of file STLCore.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::fileSize(), ifstreamPointer::release(), STLHeaderSize, and ifstreamPointer::whichCompression().
|
staticprotected |
Definition at line 220 of file STLCore.C.
References os(), and STLHeaderSize.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.