60 is.read(reinterpret_cast<char*>(&normal_), 4*
sizeof(
STLpoint));
61 is.read(reinterpret_cast<char*>(&attrib_),
sizeof(STLattrib));
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;
void read(std::istream &is)
Read from istream (binary)
virtual Ostream & write(const char c) override
Write character.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & print(Ostream &os) const
Write to Ostream (ASCII)
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
vector unitNormal() const
Return unit normal.
void write(std::ostream &os) const
Write to ostream (binary)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
STLtriangle()=default
Default construct.
const volScalarField & p0
A vertex point or facet normal representation for STL files.