60 is.read(
reinterpret_cast<char*
>(&normal_), 4*
sizeof(
STLpoint));
61 is.read(
reinterpret_cast<char*
>(&attrib_),
sizeof(STLattrib));
67 os.write(
reinterpret_cast<const char*
>(&normal_), 4*
sizeof(
STLpoint));
68 os.write(
reinterpret_cast<const char*
>(&attrib_),
sizeof(STLattrib));
74 os <<
" facet normal "
75 << normal_.x() <<
' ' << normal_.y() <<
' ' << normal_.z() <<
nl
76 <<
" outer loop" <<
nl
77 <<
" vertex " << a_.x() <<
' ' << a_.y() <<
' ' << a_.z() <<
nl
78 <<
" vertex " << b_.x() <<
' ' << b_.y() <<
' ' << b_.z() <<
nl
79 <<
" vertex " << c_.x() <<
' ' << c_.y() <<
' ' << c_.z() <<
nl
96 os <<
" facet normal "
97 << norm.
x() <<
' ' << norm.
y() <<
' ' << norm.
z() <<
nl
98 <<
" outer loop" <<
nl
99 <<
" vertex " <<
p0.x() <<
' ' <<
p0.y() <<
' ' <<
p0.z() <<
nl
100 <<
" vertex " << p1.
x() <<
' ' << p1.
y() <<
' ' << p1.
z() <<
nl
101 <<
" vertex " << p2.
x() <<
' ' << p2.
y() <<
' ' << p2.
z() <<
nl
103 <<
" endfacet" <<
nl;
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A vertex point or facet normal representation for STL files.
A triangle representation for STL files.
void write(std::ostream &os) const
Write to ostream (binary).
const STLpoint & a() const noexcept
const STLpoint & normal() const noexcept
Ostream & print(Ostream &os) const
Write to Ostream (ASCII).
const STLpoint & b() const noexcept
const STLpoint & c() const noexcept
STLtriangle()=default
Default construct.
uint16_t attrib() const noexcept
void read(std::istream &is)
Read from istream (binary).
const Cmpt & x() const noexcept
Access to the vector x component.
const Cmpt & z() const noexcept
Access to the vector z component.
const Cmpt & y() const noexcept
Access to the vector y component.
vector unitNormal() const
const volScalarField & p0
OBJstream os(runTime.globalPath()/outputName)
bool read(const char *buf, int32_t &val)
Same as readInt32.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
vector point
Point is a vector.
constexpr char nl
The newline '\n' character (0x0a).