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 STLpoint & | normal () const |
const STLpoint & | a () const |
const STLpoint & | b () const |
const STLpoint & | c () const |
unsigned short | attrib () const |
void | read (std::istream &is) |
void | write (std::ostream &os) const |
Ostream & | print (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 | |
Ostream & | operator<< (Ostream &os, const STLtriangle &tri) |
|
inline |
Definition at line 26 of file STLtriangleI.H.
|
inline |
Definition at line 31 of file STLtriangleI.H.
|
inline |
Definition at line 47 of file STLtriangleI.H.
References Foam::read().
|
inline |
Definition at line 55 of file STLtriangleI.H.
|
inline |
Definition at line 61 of file STLtriangleI.H.
|
inline |
Definition at line 67 of file STLtriangleI.H.
|
inline |
Definition at line 73 of file STLtriangleI.H.
|
inline |
Definition at line 79 of file STLtriangleI.H.
|
inline |
Definition at line 85 of file STLtriangleI.H.
|
inline |
Definition at line 92 of file STLtriangleI.H.
References os(), and OBJstream::write().
|
inline |
Definition at line 99 of file STLtriangleI.H.
References Foam::nl, and os().
|
inlinestatic |
Definition at line 115 of file STLtriangleI.H.
References Foam::nl, os(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
Definition at line 135 of file STLtriangleI.H.
References os(), and Foam::vtk::write().
|
friend |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.