43 const bool writeLinesOnly
53 os <<
"v " <<
p.x() <<
' ' <<
p.y() <<
' ' <<
p.z() <<
nl;
60 os <<
"l " <<
e[0] + vertIndex + 1
61 <<
' ' <<
e[1] + vertIndex + 1 <<
nl;
69 for (
const label fpi :
f)
71 os <<
' ' << fpi + vertIndex + 1;
77 vertIndex +=
pts.size();
A face is a list of labels corresponding to mesh vertices.
static void writeOBJ(Ostream &os, const treeBoundBox &bb, label &vertIndex, const bool writeLinesOnly=false)
Write treeBoundBox in OBJ format.
constexpr char nl
The newline '\n' character (0x0a)
static scalar tolerance_
Relative tolerance.
static const faceList faces
Face to point addressing, using octant corner points.
const dimensionedScalar e
Elementary charge.
An edge is a list of two vertex labels. This can correspond to a directed graph edge or an edge on a ...
static const edgeList edges
Edge to point addressing, using octant corner points.
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)
tmp< pointField > points() const
Vertex coordinates. In octant coding.
Standard boundBox with extra functionality for use in octree.