Go to the documentation of this file.
94 is.read(
reinterpret_cast<char*
>(&normal_), 4*
sizeof(
STLpoint));
95 is.read(
reinterpret_cast<char*
>(&attrib_),
sizeof(STLattrib));
101 os.write(
reinterpret_cast<const char*
>(&normal_), 4*
sizeof(
STLpoint));
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);
const Cmpt & x() const
Access to the vector x component.
void read(std::istream &is)
Read from istream (binary)
unsigned short attrib() const
bool read(const char *buf, int32_t &val)
Same as readInt32.
const Cmpt & z() const
Access to the vector z component.
void write(std::ostream &os) const
Write to ostream (binary)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Ostream & print(Ostream &os) const
Write to Ostream (ASCII)
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
const STLpoint & b() const
const Cmpt & y() const
Access to the vector y component.
const STLpoint & c() const
A triangle representation for STL files.
A vertex point or facet normal representation for STL files.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
const dimensionedScalar c
Speed of light in a vacuum.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const STLpoint & normal() const
STLtriangle()
Construct null.
const STLpoint & a() const
triangle< point, const point & > triPointRef
A triangle using referred points.