STLsurfaceFormatCore Class Reference

Internal class used by the STLsurfaceFormat. More...

Public Member Functions

 STLsurfaceFormatCore (const fileName &)
 Read from file, filling in the information. More...
 
 STLsurfaceFormatCore (const STLsurfaceFormatCore &)=delete
 Disallow default bitwise copy construction. More...
 
 ~STLsurfaceFormatCore ()
 Destructor. More...
 
bool sorted () const
 File read was already sorted. More...
 
void clear ()
 Flush all values. More...
 
pointFieldpoints ()
 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...
 
void operator= (const STLsurfaceFormatCore &)=delete
 Disallow default bitwise assignment. 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...
 

Detailed Description

Internal class used by the STLsurfaceFormat.

Source files

Definition at line 54 of file STLsurfaceFormatCore.H.

Constructor & Destructor Documentation

◆ STLsurfaceFormatCore() [1/2]

STLsurfaceFormatCore ( const fileName filename)

Read from file, filling in the information.

Definition at line 209 of file STLsurfaceFormatCore.C.

References IOstream::BINARY, and Foam::fileSize().

Here is the call graph for this function:

◆ STLsurfaceFormatCore() [2/2]

Disallow default bitwise copy construction.

◆ ~STLsurfaceFormatCore()

Destructor.

Definition at line 244 of file STLsurfaceFormatCore.C.

Member Function Documentation

◆ writeHeaderBINARY()

void writeHeaderBINARY ( ostream &  os,
unsigned int  nTris 
)
static

Write "STL binary file" and number of triangles to stream.

Definition at line 250 of file STLsurfaceFormatCore.C.

◆ sorted()

bool sorted ( ) const
inline

File read was already sorted.

Definition at line 115 of file STLsurfaceFormatCore.H.

Referenced by STLsurfaceFormat< Face >::read().

Here is the caller graph for this function:

◆ clear()

void clear ( )
inline

Flush all values.

Definition at line 121 of file STLsurfaceFormatCore.H.

References List< T >::clear().

Here is the call graph for this function:

◆ points()

pointField& points ( )
inline

Return full access to the points.

Definition at line 131 of file STLsurfaceFormatCore.H.

Referenced by STLsurfaceFormat< Face >::read().

Here is the caller graph for this function:

◆ zoneIds()

List<label>& zoneIds ( )
inline

Return full access to the zoneIds.

Definition at line 137 of file STLsurfaceFormatCore.H.

Referenced by STLsurfaceFormat< Face >::read().

Here is the caller graph for this function:

◆ names()

List<word>& names ( )
inline

The list of solid names in the order of their first appearance.

Definition at line 143 of file STLsurfaceFormatCore.H.

Referenced by STLsurfaceFormat< Face >::read().

Here is the caller graph for this function:

◆ sizes()

List<label>& sizes ( )
inline

The list of solid sizes in the order of their first appearance.

Definition at line 149 of file STLsurfaceFormatCore.H.

Referenced by STLsurfaceFormat< Face >::read().

Here is the caller graph for this function:

◆ operator=()

void operator= ( const STLsurfaceFormatCore )
delete

Disallow default bitwise assignment.

Member Data Documentation

◆ headerSize

const unsigned int headerSize = 80
static

The number of bytes in the STL binary header.

Definition at line 90 of file STLsurfaceFormatCore.H.


The documentation for this class was generated from the following files: