Go to the documentation of this file.
26 #include "writePointSet.H"
28 #include "writeFuns.H"
40 const primitiveMesh&
mesh,
42 const fileName& fileName
45 std::ofstream pStream(fileName.c_str());
48 <<
"# vtk DataFile Version 2.0" <<
std::endl
58 pStream <<
"DATASET POLYDATA" <<
std::endl;
vectorField pointField
pointField is a vectorField.
virtual const pointField & points() const
Return raw points.
List< label > labelList
A List of labels.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void write(std::ostream &, const bool, DynamicList< floatScalar > &)
Write floats ascii or binary.
void size(const label)
Override size to be inconsistent with allocated storage.
virtual const fileName & name() const
Return the name of the stream.
labelList pointLabels(nPoints, -1)
static void insert(const point &, DynamicList< floatScalar > &dest)
Append point to given DynamicList.
void writePointSet(const bool binary, const primitiveMesh &mesh, const topoSet &set, const fileName &fileName)
Write pointSet to vtk polydata file.