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

STLtriangle Class Reference

A triangle representation for STL files. More...

Collaboration diagram for STLtriangle:

List of all members.


Public Member Functions

 STLtriangle ()
 Construct null.
 STLtriangle (const STLpoint &normal, const STLpoint &a, const STLpoint &b, const STLpoint &c, unsigned short attrib)
 Construct from components.
 STLtriangle (istream &)
 Construct from istream (read binary).
const STLpointnormal () const
const STLpointa () const
const STLpointb () const
const STLpointc () const
unsigned short attrib () const
void read (istream &)
 Read from istream (binary).
void write (ostream &)
 Write to ostream (binary).
 STLtriangle ()
 Construct null.
 STLtriangle (const STLpoint &normal, const STLpoint &a, const STLpoint &b, const STLpoint &c, unsigned short region)
 Construct from components.
 STLtriangle (istream &)
 Construct from istream (read binary).
const STLpointa () const
const STLpointb () const
const STLpointc () const
unsigned short region () const
void read (istream &)
 Read from istream (binary).
void write (ostream &)
 Write to istream (binary).

Friends

Ostreamoperator<< (Ostream &, const STLtriangle &)
Ostreamoperator<< (Ostream &, const STLtriangle &)

Detailed Description

A triangle representation for STL files.

Source files
Source files

Definition at line 46 of file STLtriangle.H.


Constructor & Destructor Documentation

STLtriangle (  )  [inline]

Construct null.

Definition at line 20 of file STLtriangleI.H.

STLtriangle ( const STLpoint normal,
const STLpoint a,
const STLpoint b,
const STLpoint c,
unsigned short  attrib 
) [inline]

Construct from components.

Definition at line 25 of file STLtriangleI.H.

STLtriangle ( istream &  is  )  [inline]

Construct from istream (read binary).

Construct from istream (binary).

Definition at line 41 of file STLtriangleI.H.

STLtriangle (  )  [inline]

Construct null.

STLtriangle ( const STLpoint normal,
const STLpoint a,
const STLpoint b,
const STLpoint c,
unsigned short  region 
) [inline]

Construct from components.

STLtriangle ( istream &   )  [inline]

Construct from istream (read binary).


Member Function Documentation

const Foam::STLpoint & normal (  )  const [inline]

Definition at line 49 of file STLtriangleI.H.

References STLtriangle::read().

Here is the call graph for this function:

const STLpoint & a (  )  const [inline]

Definition at line 55 of file STLtriangleI.H.

const STLpoint & b (  )  const [inline]

Definition at line 61 of file STLtriangleI.H.

const STLpoint & c (  )  const [inline]

Definition at line 67 of file STLtriangleI.H.

unsigned short attrib (  )  const [inline]

Definition at line 73 of file STLtriangleI.H.

void read ( istream &  is  )  [inline]

Read from istream (binary).

Definition at line 79 of file STLtriangleI.H.

Referenced by STLtriangle::normal().

Here is the caller graph for this function:

void write ( ostream &  os  )  [inline]

Write to ostream (binary).

Definition at line 86 of file STLtriangleI.H.

const STLpoint& a (  )  const [inline]

const STLpoint& b (  )  const [inline]

const STLpoint& c (  )  const [inline]

unsigned short region (  )  const [inline]

Definition at line 75 of file STLtriangleI.H.

void read ( istream &   )  [inline]

Read from istream (binary).

void write ( ostream &   )  [inline]

Write to istream (binary).


Friends And Related Function Documentation

Ostream& operator<< ( Ostream os,
const STLtriangle stlt 
) [friend]

Definition at line 96 of file STLtriangleI.H.

Ostream& operator<< ( Ostream os,
const STLtriangle stlt 
) [friend]

Definition at line 96 of file STLtriangleI.H.


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