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();
static scalar tolerance_
Relative tolerance.
static void writeOBJ(Ostream &os, const treeBoundBox &bb, label &vertIndex, const bool writeLinesOnly=false)
Write treeBoundBox in OBJ format.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An edge is a list of two vertex labels. This can correspond to a directed graph edge or an edge on a ...
A face is a list of labels corresponding to mesh vertices.
Standard boundBox with extra functionality for use in octree.
static const edgeList edges
Edge to point addressing, using octant corner points.
static const faceList faces
Face to point addressing, using octant corner points.
tmp< pointField > points() const
Vertex coordinates. In octant coding.
OBJstream os(runTime.globalPath()/outputName)
vector point
Point is a vector.
vectorField pointField
pointField is a vectorField.
constexpr char nl
The newline '\n' character (0x0a).