A triangle representation for STL files. More...
Public Member Functions | |
STLtriangle ()=default | |
Default construct. More... | |
STLtriangle (const STLpoint &normal, const STLpoint &p0, const STLpoint &p1, const STLpoint &p2, uint16_t attrib) | |
Construct from components. More... | |
STLtriangle (std::istream &is) | |
Construct from istream (read binary) More... | |
const STLpoint & | normal () const noexcept |
const STLpoint & | a () const noexcept |
const STLpoint & | b () const noexcept |
const STLpoint & | c () const noexcept |
uint16_t | attrib () const noexcept |
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 &p0, const point &p1, const point &p2) |
Write components to Ostream (ASCII) More... | |
static void | write (Ostream &os, const point &p0, const point &p1, const point &p2) |
Write components to Ostream (ASCII), calculating the normal. More... | |
Friends | |
Ostream & | operator<< (Ostream &os, const STLtriangle &tri) |
Print triangle contents. More... | |
|
default |
Default construct.
|
inline |
Construct from components.
Definition at line 27 of file STLtriangleI.H.
|
inline |
Construct from istream (read binary)
Definition at line 43 of file STLtriangleI.H.
References STLtriangle::read().
|
inlinenoexcept |
Definition at line 111 of file STLtriangle.H.
Referenced by Foam::operator<<().
|
inlinenoexcept |
Definition at line 112 of file STLtriangle.H.
Referenced by Foam::operator<<().
|
inlinenoexcept |
Definition at line 113 of file STLtriangle.H.
Referenced by Foam::operator<<().
|
inlinenoexcept |
Definition at line 114 of file STLtriangle.H.
Referenced by Foam::operator<<().
|
inlinenoexcept |
Definition at line 115 of file STLtriangle.H.
Referenced by Foam::operator<<().
|
inline |
Read from istream (binary)
Definition at line 51 of file STLtriangleI.H.
Referenced by STLtriangle::STLtriangle().
|
inline |
Write to ostream (binary)
Definition at line 58 of file STLtriangleI.H.
References os(), and OBJstream::write().
|
inline |
Write to Ostream (ASCII)
Definition at line 65 of file STLtriangleI.H.
References Foam::nl, and os().
Write components to Ostream (ASCII), calculating the normal.
Definition at line 101 of file STLtriangleI.H.
References os(), p0, triangle< Point, PointRef >::unitNormal(), and Foam::vtk::write().
|
friend |
Print triangle contents.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.