STLtriangle Class Reference

A triangle representation for STL files. More...

Public Member Functions

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

Friends

Ostreamoperator<< (Ostream &, const STLtriangle &)
 

Detailed Description

A triangle representation for STL files.

Source files

Definition at line 57 of file STLtriangle.H.

Constructor & Destructor Documentation

◆ STLtriangle() [1/3]

STLtriangle ( )
inline

Construct null.

Definition at line 28 of file STLtriangleI.H.

◆ STLtriangle() [2/3]

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

Construct from components.

Definition at line 33 of file STLtriangleI.H.

◆ STLtriangle() [3/3]

STLtriangle ( istream &  is)
inline

Construct from istream (read binary)

Definition at line 49 of file STLtriangleI.H.

References STLtriangle::read().

Here is the call graph for this function:

Member Function Documentation

◆ normal()

const Foam::STLpoint & normal ( ) const
inline

Definition at line 57 of file STLtriangleI.H.

◆ a()

const Foam::STLpoint & a ( ) const
inline

Definition at line 63 of file STLtriangleI.H.

◆ b()

const Foam::STLpoint & b ( ) const
inline

Definition at line 69 of file STLtriangleI.H.

◆ c()

const Foam::STLpoint & c ( ) const
inline

Definition at line 75 of file STLtriangleI.H.

◆ attrib()

unsigned short attrib ( ) const
inline

Definition at line 81 of file STLtriangleI.H.

◆ read()

void read ( istream &  is)
inline

Read from istream (binary)

Definition at line 87 of file STLtriangleI.H.

Referenced by STLtriangle::STLtriangle().

Here is the caller graph for this function:

◆ write()

void write ( ostream &  os)
inline

Write to ostream (binary)

Definition at line 94 of file STLtriangleI.H.

Friends And Related Function Documentation

◆ operator<<

Ostream& operator<< ( Ostream ,
const STLtriangle  
)
friend

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