Public Member Functions | Static Public Member Functions | Friends | List of all members
STLtriangle Class Reference

A triangle representation for STL files. More...

Public Member Functions

 STLtriangle ()
 
 STLtriangle (const STLpoint &normal, const STLpoint &a, const STLpoint &b, const STLpoint &c, unsigned short attrib)
 
 STLtriangle (std::istream &is)
 
const STLpointnormal () const
 
const STLpointa () const
 
const STLpointb () const
 
const STLpointc () const
 
unsigned short attrib () const
 
void read (std::istream &is)
 
void write (std::ostream &os) const
 
Ostreamprint (Ostream &os) const
 

Static Public Member Functions

static void write (Ostream &os, const vector &norm, const point &pt0, const point &pt1, const point &pt2)
 
static void write (Ostream &os, const point &pt0, const point &pt1, const point &pt2)
 

Friends

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

Detailed Description

A triangle representation for STL files.

Source files

Definition at line 53 of file STLtriangle.H.

Constructor & Destructor Documentation

◆ STLtriangle() [1/3]

STLtriangle ( )
inline

Definition at line 26 of file STLtriangleI.H.

◆ STLtriangle() [2/3]

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

Definition at line 31 of file STLtriangleI.H.

◆ STLtriangle() [3/3]

STLtriangle ( std::istream &  is)
inline

Definition at line 47 of file STLtriangleI.H.

References Foam::read().

Here is the call graph for this function:

Member Function Documentation

◆ normal()

const Foam::STLpoint & normal ( ) const
inline

Definition at line 55 of file STLtriangleI.H.

◆ a()

const Foam::STLpoint & a ( ) const
inline

Definition at line 61 of file STLtriangleI.H.

◆ b()

const Foam::STLpoint & b ( ) const
inline

Definition at line 67 of file STLtriangleI.H.

◆ c()

const Foam::STLpoint & c ( ) const
inline

Definition at line 73 of file STLtriangleI.H.

◆ attrib()

unsigned short attrib ( ) const
inline

Definition at line 79 of file STLtriangleI.H.

◆ read()

void read ( std::istream &  is)
inline

Definition at line 85 of file STLtriangleI.H.

◆ write() [1/3]

void write ( std::ostream &  os) const
inline

Definition at line 92 of file STLtriangleI.H.

References os(), and OBJstream::write().

Here is the call graph for this function:

◆ print()

Foam::Ostream & print ( Ostream os) const
inline

Definition at line 99 of file STLtriangleI.H.

References Foam::nl, and os().

Here is the call graph for this function:

◆ write() [2/3]

void write ( Ostream os,
const vector norm,
const point pt0,
const point pt1,
const point pt2 
)
inlinestatic

Definition at line 115 of file STLtriangleI.H.

References Foam::nl, os(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().

Here is the call graph for this function:

◆ write() [3/3]

void write ( Ostream os,
const point pt0,
const point pt1,
const point pt2 
)
inlinestatic

Definition at line 135 of file STLtriangleI.H.

References os(), and Foam::vtk::write().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

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

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