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));
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);
void read(std::istream &is)
unsigned short attrib() const
bool read(const char *buf, int32_t &val)
virtual Ostream & write(const char c)
void write(std::ostream &os) const
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Ostream & print(Ostream &os) const
const dimensionedScalar b
OBJstream os(runTime.globalPath()/outputName)
const STLpoint & b() const
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)
const dimensionedScalar c
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const STLpoint & normal() const
const STLpoint & a() const
triangle< point, const point & > triPointRef
A triangle using referred points.