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;
void insert(const scalar, DynamicList< floatScalar > &)
Append scalar to given DynamicList.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
void writeHeader(std::ostream &, const bool isBinary, const std::string &title)
Write header.
List< label > labelList
A List of labels.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void writePointSet(const bool binary, const vtkMesh &vMesh, const pointSet &set, const fileName &fileName)
Write pointSet to vtk polydata file. Only one data which is original pointID.