94 is.read(
reinterpret_cast<char*
>(&normal_), 4*
sizeof(
STLpoint));
95 is.read(
reinterpret_cast<char*
>(&attrib_),
sizeof(STLattrib));
102 os.
write(
reinterpret_cast<const char*
>(&attrib_),
sizeof(STLattrib));
108 os <<
" facet normal "
109 << normal_.x() <<
' ' << normal_.y() <<
' ' << normal_.z() <<
nl
110 <<
" outer loop" <<
nl
111 <<
" vertex " << a_.x() <<
' ' << a_.y() <<
' ' << a_.z() <<
nl
112 <<
" vertex " << b_.x() <<
' ' << b_.y() <<
' ' << b_.z() <<
nl
113 <<
" vertex " << c_.x() <<
' ' << c_.y() <<
' ' << c_.z() <<
nl
115 <<
" endfacet" <<
nl;
130 os <<
" facet normal "
131 << norm.
x() <<
' ' << norm.
y() <<
' ' << norm.
z() <<
nl
132 <<
" outer loop" <<
nl
133 <<
" vertex " << pt0.
x() <<
' ' << pt0.
y() <<
' ' << pt0.
z() <<
nl
134 <<
" vertex " << pt1.
x() <<
' ' << pt1.
y() <<
' ' << pt1.
z() <<
nl
135 <<
" vertex " << pt2.
x() <<
' ' << pt2.
y() <<
' ' << pt2.
z() <<
nl
137 <<
" endfacet" <<
nl;
152 write(
os, norm, pt0, pt1, pt2);
virtual Ostream & write(const char c)
Write character.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual bool read()
Re-read model coefficients if they have changed.
A vertex point or facet normal representation for STL files.
A triangle representation for STL files.
const STLpoint & a() const
const STLpoint & c() const
const STLpoint & normal() const
const STLpoint & b() const
unsigned short attrib() const
STLtriangle()
Construct null.
const Cmpt & z() const
Access to the vector z component.
const Cmpt & y() const
Access to the vector y component.
const Cmpt & x() const
Access to the vector x component.
virtual bool write()
Write the output fields.
scalar print()
Print to screen.
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)
triangle< point, const point & > triPointRef
A triangle using referred points.
constexpr char nl
The newline '\n' character (0x0a)