Go to the documentation of this file.
42 const fileName& fileName
47 std::ofstream ostr(fileName.c_str(),
48 ios_base::out|ios_base::binary);
68 ostr<<
"POINTS " << set.size() <<
" double" <<
std::endl;
70 DynamicList<doubleScalar> ptField(3*set.size());
74 UIndirectList<point>(vMesh.mesh().points(), set.toc())(),
90 <<
"POINT_DATA " << set.size() <<
std::endl
94 ostr<<
"pointID 1 " << set.size() <<
" int" <<
std::endl;
Write pointSet to vtk polydata file. Only one data which is original pointID.
List< label > labelList
A List of labels.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void writeHeader(std::ostream &, const bool isBinary, const std::string &title)
static void write(std::ostream &, const bool, DynamicList< floatScalar > &)
Write floats ascii or binary.
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.