26 #include "writePointSet.H" 28 #include "writeFuns.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;
void writePointSet(const bool binary, const primitiveMesh &mesh, const topoSet &set, const fileName &fileName)
Write pointSet to vtk polydata file.
static void writeHeader(std::ostream &, const bool isBinary, const std::string &title)
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void insert(const point &, DynamicList< floatScalar > &dest)
Append point to given DynamicList.
List< label > labelList
A List of labels.
static void write(std::ostream &, const bool, DynamicList< floatScalar > &)
Write floats ascii or binary.
word name(const complex &)
Return a string representation of a complex.