69 const label nPolys = points_.
size();
83 const uint64_t payLoad = vtk::sizeofData<float, 3>(
nPoints);
89 format().writeSize(payLoad);
97 const point& origin = points_[posi];
100 posi < localToGlobal.
size()
101 ? localToGlobal[posi]
124 const uint64_t payLoad = vtk::sizeofData<label>(points_.
size());
127 format().writeSize(payLoad);
141 const uint64_t payLoad = vtk::sizeofData<label>(points_.
size());
144 format().writeSize(payLoad);
160 label nLinePoints = 0;
170 const uint64_t payLoad = vtk::sizeofData<label>(nLinePoints);
173 format().writeSize(payLoad);
190 const uint64_t payLoad = vtk::sizeofData<label>(lines.size());
193 format().writeSize(payLoad);
199 format().write(nLinePoints);
222 const uint64_t payLoad = vtk::sizeofData<label>(3*nPolys);
225 format().writeSize(payLoad);
227 for (label pointi=0, nei=nPolys; pointi < nPolys; ++pointi)
230 format().write(nei); ++nei;
231 format().write(nei); ++nei;
244 const uint64_t payLoad = vtk::sizeofData<label>(nPolys);
247 format().writeSize(payLoad);
249 for (
const label off :
sliceRange(3, nPolys, 3))
267 const uint64_t payLoad =
268 vtk::sizeofData<label>(points_.
size() + lines.size());
270 format().beginDataArray<label>(
"pointId");
271 format().writeSize(payLoad);
288 if (pointIds.
size() == points_.
size())
290 const uint64_t payLoad =
291 vtk::sizeofData<label>(points_.
size() + lines.size());
293 format().beginDataArray<label>(
"originalId");
294 format().writeSize(payLoad);
312 const uint64_t payLoad =
313 vtk::sizeofData<label>(points_.
size() + lines.size());
315 format().beginDataArray<label>(
"lineId");
316 format().writeSize(payLoad);
336 format().beginPointData();
340 const uint64_t payLoad = vtk::sizeofData<label>(
nPoints);
342 format().beginDataArray<label>(
"pointId");
343 format().writeSize(payLoad);
357 if (pointIds.
size() == points_.
size())
359 const uint64_t payLoad = vtk::sizeofData<label>(
nPoints);
361 format().beginDataArray<label>(
"originalId");
362 format().writeSize(payLoad);
void size(const label n)
Older name for setAddressableSize.
A class for handling file names.
static scalar visLength
The length for visualization triangles.
Output to file stream as an OSstream, normally using std::ofstream for the actual output...
autoPtr< vtk::formatter > newFormatter(std::ostream &os, unsigned prec=IOstream::defaultPrecision())
Return a default asciiFormatter.
A traits class, which is primarily used for primitives and vector-space.
XML inline ASCII, asciiFormatter.
#define forAll(list, i)
Loop across all elements in list.
virtual const std::ostream & stdStream() const override
Const access to underlying std::ostream.
static constexpr label size() noexcept
Return the number of elements in the FixedList.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
void writeIdentity(vtk::formatter &fmt, const label len, label start=0)
Write an identity list of labels.
Line point storage. Default constructable (line is not)
A set of labels defined by a start, a length and a stride.
void writeList(vtk::formatter &fmt, const UList< uint8_t > &values)
Write a list of uint8_t values.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
OBJstream os(runTime.globalPath()/outputName)
word format(conversionProperties.get< word >("format"))
const tensorField & rotations() const
The local-to-global transformation for each point.
static bool master(const label communicator=worldComm)
True if process corresponds to the master rank in the communicator.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Tensor of scalars, i.e. Tensor<scalar>.
void writeVTP(const fileName &outputFile, const labelListList &lines=labelListList(), const labelList &pointIds=labelList::null()) const
Output points/rotations as VTK file for debugging/visualization.