OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

STLsurfaceFormatCore Class Reference

Internal class used by the STLsurfaceFormat. More...

Collaboration diagram for STLsurfaceFormatCore:

List of all members.


Public Member Functions

 STLsurfaceFormatCore (const fileName &)
 Read from file, filling in the information.
 ~STLsurfaceFormatCore ()
bool sorted () const
 File read was already sorted.
void clear ()
 Flush all values.
pointField & points ()
 Return full access to the points.
List< label > & zoneIds ()
 Return full access to the zoneIds.
List< word > & names ()
 The list of solid names in the order of their first appearance.
List< label > & sizes ()
 The list of solid sizes in the order of their first appearance.

Static Public Member Functions

static void writeHeaderBINARY (ostream &, unsigned int)
 Write "STL binary file" and number of triangles to stream.

Static Public Attributes

static const unsigned int headerSize = 80
 The number of bytes in the STL binary header.

Detailed Description

Internal class used by the STLsurfaceFormat.

Source files

Definition at line 50 of file STLsurfaceFormatCore.H.


Constructor & Destructor Documentation

STLsurfaceFormatCore ( const fileName &  filename  ) 

Read from file, filling in the information.

Definition at line 207 of file STLsurfaceFormatCore.C.

Definition at line 241 of file STLsurfaceFormatCore.C.


Member Function Documentation

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

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

Definition at line 248 of file STLsurfaceFormatCore.C.

bool sorted (  )  const [inline]

File read was already sorted.

Definition at line 115 of file STLsurfaceFormatCore.H.

void clear (  )  [inline]

Flush all values.

Definition at line 121 of file STLsurfaceFormatCore.H.

pointField& points (  )  [inline]

Return full access to the points.

Definition at line 131 of file STLsurfaceFormatCore.H.

List<label>& zoneIds (  )  [inline]

Return full access to the zoneIds.

Definition at line 137 of file STLsurfaceFormatCore.H.

List<word>& names (  )  [inline]

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

Definition at line 143 of file STLsurfaceFormatCore.H.

List<label>& sizes (  )  [inline]

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

Definition at line 149 of file STLsurfaceFormatCore.H.


Member Data Documentation

const unsigned int headerSize = 80 [static]

The number of bytes in the STL binary header.

Definition at line 92 of file STLsurfaceFormatCore.H.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd