68 const label nPolys = points_.
size();
82 const uint64_t payLoad = vtk::sizeofData<float, 3>(
nPoints);
88 format().writeSize(payLoad);
96 const point& origin = points_[posi];
99 posi < localToGlobal.
size()
100 ? localToGlobal[posi]
123 const uint64_t payLoad = vtk::sizeofData<label>(points_.
size());
126 format().writeSize(payLoad);
140 const uint64_t payLoad = vtk::sizeofData<label>(points_.
size());
143 format().writeSize(payLoad);
159 label nLinePoints = 0;
169 const uint64_t payLoad = vtk::sizeofData<label>(nLinePoints);
172 format().writeSize(payLoad);
189 const uint64_t payLoad = vtk::sizeofData<label>(lines.size());
192 format().writeSize(payLoad);
198 format().write(nLinePoints);
221 const uint64_t payLoad = vtk::sizeofData<label>(3*nPolys);
224 format().writeSize(payLoad);
226 for (label pointi=0, nei=nPolys; pointi < nPolys; ++pointi)
229 format().write(nei); ++nei;
230 format().write(nei); ++nei;
243 const uint64_t payLoad = vtk::sizeofData<label>(nPolys);
246 format().writeSize(payLoad);
248 for (label trii = 1; trii <= nPolys; ++trii)
251 format().write(label(3*trii));
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.
void writeIdentity(vtk::formatter &fmt, const label len, label start=0)
Write an identity list of labels.
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...
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.
autoPtr< vtk::formatter > newFormatter(std::ostream &os, unsigned prec=IOstream::defaultPrecision())
Return a default asciiFormatter.
static constexpr label size() noexcept
Return the number of elements in the FixedList.
void writeList(vtk::formatter &fmt, const UList< uint8_t > &values)
Write a list of uint8_t values.
Line point storage. Default constructable (line is not)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
word format(conversionProperties.get< word >("format"))
const tensorField & rotations() const
The local-to-global transformation for each point.
static bool master(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...
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
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.