A triangle representation for STL files. More...
#include <STLtriangle.H>
Public Member Functions | |
| STLtriangle ()=default | |
| Default construct. | |
| STLtriangle (const STLpoint &normal, const STLpoint &p0, const STLpoint &p1, const STLpoint &p2, uint16_t attrib) | |
| Construct from components. | |
| STLtriangle (std::istream &is) | |
| Construct from istream (read binary). | |
| 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). | |
| void | write (std::ostream &os) const |
| Write to ostream (binary). | |
| Ostream & | print (Ostream &os) const |
| Write to Ostream (ASCII). | |
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). | |
| static void | write (Ostream &os, const point &p0, const point &p1, const point &p2) |
| Write components to Ostream (ASCII), calculating the normal. | |
Friends | |
| Ostream & | operator<< (Ostream &os, const STLtriangle &tri) |
| Print triangle contents. | |
|
default |
Default construct.
References attrib(), normal(), and p0.
Referenced by operator<<.


|
inline |
Construct from components.
Definition at line 26 of file STLtriangleI.H.
References attrib(), normal(), and p0.

|
inline |
Construct from istream (read binary).
Definition at line 43 of file STLtriangleI.H.
References Foam::read().

|
inlinenoexcept |
Definition at line 111 of file STLtriangle.H.
References Foam::noexcept.
Referenced by Foam::operator<<(), STLtriangle(), and STLtriangle().

|
inlinenoexcept |
Definition at line 112 of file STLtriangle.H.
References Foam::noexcept.
Referenced by Foam::operator<<().

|
inlinenoexcept |
Definition at line 113 of file STLtriangle.H.
References Foam::noexcept.
Referenced by Foam::operator<<().

|
inlinenoexcept |
Definition at line 114 of file STLtriangle.H.
References Foam::noexcept.
Referenced by Foam::operator<<().

|
inlinenoexcept |
Definition at line 115 of file STLtriangle.H.
References Foam::noexcept.
Referenced by Foam::operator<<(), STLtriangle(), and STLtriangle().

|
inline |
Read from istream (binary).
Definition at line 51 of file STLtriangleI.H.
|
inline |
Write to ostream (binary).
Definition at line 58 of file STLtriangleI.H.
References os().

|
inline |
Write to Ostream (ASCII).
Definition at line 65 of file STLtriangleI.H.
References Foam::nl, and os().

|
inlinestatic |
Write components to Ostream (ASCII).
Definition at line 80 of file STLtriangleI.H.
References Foam::nl, os(), p0, Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().

Write components to Ostream (ASCII), calculating the normal.
Definition at line 100 of file STLtriangleI.H.
References os(), p0, triangle< point, const point & >::unitNormal(), and write().

|
friend |
Print triangle contents.
References os(), and STLtriangle().