30 inline vtkSmartPointer<vtkPoints>
43 const labelUList& addPoints = this->additionalIds();
45 vtkpoints->SetNumberOfPoints(pts.size() + addPoints.
size());
48 vtkIdType pointId = 0;
51 vtkpoints->SetPoint(pointId++,
p.v_);
55 for (
const label meshCelli : addPoints)
57 vtkpoints->SetPoint(pointId++,
mesh.cellCentres()[meshCelli].v_);
64 inline vtkSmartPointer<vtkPoints>
78 const labelUList& addPoints = this->additionalIds();
80 vtkpoints->SetNumberOfPoints(pointMap.
size() + addPoints.
size());
83 vtkIdType pointId = 0;
84 for (
const label meshPointi : pointMap)
86 vtkpoints->SetPoint(pointId++, pts[meshPointi].v_);
90 for (
const label meshCelli : addPoints)
92 vtkpoints->SetPoint(pointId++,
mesh.cellCentres()[meshCelli].v_);
99 inline vtkSmartPointer<vtkUnstructuredGrid>
103 const bool decompPoly
108 #ifdef VTK_CELL_ARRAY_V2
109 vtk::vtuSizing::contentType::INTERNAL2
111 vtk::vtuSizing::contentType::INTERNAL1
142 sizing.
sizeOf(
output, vtk::vtuSizing::slotType::CELLS_OFFSETS)
146 #ifdef VTK_CELL_ARRAY_V2
181 sizing.
sizeOf(
output, vtk::vtuSizing::slotType::FACES_OFFSETS)
190 cellsUL, cellOffsetsUL,
191 facesUL, faceLocationsUL,
200 vtkmesh->SetPoints(this->
points(mesh));
202 #ifdef VTK_CELL_ARRAY_V2
205 cells->SetData(cellOffsets, cellConnect);
219 vtkmesh->SetCells(
cellTypes, cellOffsets,
cells, faceLocations, faces);
223 vtkmesh->SetCells(
cellTypes, cellOffsets,
cells,
nullptr,
nullptr);