68 const label
nPoints = 3*points_.size();
69 const label nPolys = points_.size();
89 format().writeSize(payLoad);
97 const point& origin = points_[posi];
100 posi < localToGlobal.
size()
101 ? localToGlobal[posi]
127 format().writeSize(payLoad);
144 format().writeSize(payLoad);
160 label nLinePoints = 0;
173 format().writeSize(payLoad);
193 format().writeSize(payLoad);
199 format().write(nLinePoints);
225 format().writeSize(payLoad);
227 for (label pointi=0, nei=nPolys; pointi < nPolys; ++pointi)
230 format().write(nei); ++nei;
231 format().write(nei); ++nei;
247 format().writeSize(payLoad);
249 for (
const label off :
sliceRange(3, nPolys, 3))
267 const uint64_t payLoad =
270 format().beginDataArray<label>(
"pointId");
271 format().writeSize(payLoad);
288 if (pointIds.
size() == points_.size())
290 const uint64_t payLoad =
293 format().beginDataArray<label>(
"originalId");
294 format().writeSize(payLoad);
312 const uint64_t payLoad =
315 format().beginDataArray<label>(
"lineId");
316 format().writeSize(payLoad);
336 format().beginPointData();
342 format().beginDataArray<label>(
"pointId");
343 format().writeSize(payLoad);
357 if (pointIds.
size() == points_.size())
361 format().beginDataArray<label>(
"originalId");
362 format().writeSize(payLoad);
static constexpr label size() noexcept
Return the number of elements in the FixedList.
Output to file stream as an OSstream, normally using std::ofstream for the actual output.
virtual const std::ostream & stdStream() const override
Const access to underlying std::ostream.
Vector< Cmpt > cx() const
Extract vector for column 0.
Vector< Cmpt > cy() const
Extract vector for column 1.
void size(const label n)
Older name for setAddressableSize.
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.
A class for handling file names.
Line point storage. Default constructable (line is not).
const tensorField & rotations() const
The local-to-global transformation for each point.
static scalar visLength
The length for visualization triangles.
void writeVTP(const fileName &outputFile, const labelListList &lines=labelListList(), const labelList &pointIds=labelList::null()) const
Output points/rotations as VTK file for debugging/visualization.
A traits class, which is primarily used for primitives and vector-space.
A set of labels defined by a start, a length and a stride.
OBJstream os(runTime.globalPath()/outputName)
autoPtr< vtk::formatter > newFormatter(std::ostream &os, unsigned prec=IOstream::defaultPrecision())
Return a default asciiFormatter.
uint64_t sizeofData(label count)
Commonly used calculation for header and payload sizes.
@ NUMBER_OF_POLYS
"NumberOfPolys"
@ NUMBER_OF_LINES
"NumberOfLines"
@ NUMBER_OF_VERTS
"NumberOfVerts"
@ NUMBER_OF_POINTS
"NumberOfPoints"
void writeIdentity(vtk::formatter &fmt, const label len, label start=0)
Write an identity list of labels.
@ CONNECTIVITY
"connectivity"
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times).
@ INLINE_ASCII
XML inline ASCII, asciiFormatter.
void writeList(vtk::formatter &fmt, const UList< uint8_t > &values)
Write a list of uint8_t values.
List< labelList > labelListList
List of labelList.
List< label > labelList
A List of labels.
vector point
Point is a vector.
Field< tensor > tensorField
Specialisation of Field<T> for tensor.
word format(conversionProperties.get< word >("format"))
#define forAll(list, i)
Loop across all elements in list.