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 (std::istream &is) | |
Construct from istream (read binary) More... | |
const STLpoint & | normal () const |
const STLpoint & | a () const |
const STLpoint & | b () const |
const STLpoint & | c () const |
unsigned short | attrib () const |
void | read (std::istream &is) |
Read from istream (binary) More... | |
void | write (std::ostream &os) const |
Write to ostream (binary) More... | |
Ostream & | print (Ostream &os) const |
Write to Ostream (ASCII) More... | |
Static Public Member Functions | |
static void | write (Ostream &os, const vector &norm, const point &pt0, const point &pt1, const point &pt2) |
Write components to Ostream (ASCII) More... | |
static void | write (Ostream &os, const point &pt0, const point &pt1, const point &pt2) |
Write components to Ostream (ASCII), calculating the normal. More... | |
Friends | |
Ostream & | operator<< (Ostream &os, const STLtriangle &tri) |
Print triangle contents. More... | |
|
inline |
Construct null.
Definition at line 33 of file STLtriangleI.H.
|
inline |
Construct from components.
Definition at line 38 of file STLtriangleI.H.
|
inline |
Construct from istream (read binary)
Definition at line 54 of file STLtriangleI.H.
References Foam::read().
|
inline |
Definition at line 62 of file STLtriangleI.H.
|
inline |
Definition at line 68 of file STLtriangleI.H.
|
inline |
Definition at line 74 of file STLtriangleI.H.
|
inline |
Definition at line 80 of file STLtriangleI.H.
|
inline |
Definition at line 86 of file STLtriangleI.H.
|
inline |
Read from istream (binary)
Definition at line 92 of file STLtriangleI.H.
|
inline |
Write to ostream (binary)
Definition at line 99 of file STLtriangleI.H.
|
inline |
|
inlinestatic |
Write components to Ostream (ASCII)
Definition at line 122 of file STLtriangleI.H.
References Foam::nl, Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
Write components to Ostream (ASCII), calculating the normal.
Definition at line 142 of file STLtriangleI.H.
References Foam::vtk::write().
|
friend |
Print triangle contents.