26 #include "writePointSet.H" 42 const fileName& fileName
45 std::ofstream ostr(fileName.c_str());
65 ostr<<
"POINTS " <<
set.size() <<
" float" <<
std::endl;
67 DynamicList<floatScalar> ptField(3*
set.size());
71 UIndirectList<point>(vMesh.mesh().points(),
set.toc())(),
87 <<
"POINT_DATA " <<
set.size() << std::endl
91 ostr<<
"pointID 1 " <<
set.size() <<
" int" <<
std::endl;
Ostream & endl(Ostream &os)
Add newline and flush stream.
void writePointSet(const bool binary, const vtkMesh &vMesh, const pointSet &set, const fileName &fileName)
void insert(const scalar, DynamicList< floatScalar > &)
Append scalar to given DynamicList.
void writeHeader(std::ostream &, const bool isBinary, const std::string &title)
Write header.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
List< label > labelList
A List of labels.
word name(const complex &)
Return a string representation of a complex.