----------------------------------------------------------------------------------------------
| 64 | |
| 65 | //---------------------------------------------------------------------------------------------- |
| 66 | void vtkHyperTreeGridGeometryImpl::CreateNewCellAndCopyData( |
| 67 | const std::vector<vtkIdType>& outPointIds, vtkIdType cellId) |
| 68 | { |
| 69 | // Insert new cell |
| 70 | vtkIdType outputCellIndex = |
| 71 | this->OutCells->InsertNextCell(outPointIds.size(), outPointIds.data()); |
| 72 | |
| 73 | // Copy the data from the cell this face comes from |
| 74 | this->OutCellDataAttributes->CopyData(this->InCellDataAttributes, cellId, outputCellIndex); |
| 75 | // Insert value original VTK cell local index on server |
| 76 | if (this->PassThroughCellIds && !this->OriginalCellIdArrayName.empty()) |
| 77 | { |
| 78 | auto typedCellIds = vtkIdTypeArray::SafeDownCast( |
| 79 | this->OutCellDataAttributes->GetArray(this->OriginalCellIdArrayName.c_str())); |
| 80 | if (!typedCellIds) |
| 81 | { |
| 82 | vtkErrorWithObjectMacro(nullptr, "Pass cell ids array has wrong type."); |
| 83 | } |
| 84 | typedCellIds->InsertValue(outputCellIndex, cellId); |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | //---------------------------------------------------------------------------------------------- |
| 89 | bool vtkHyperTreeGridGeometryImpl::IsMaskedOrGhost(vtkIdType globalNodeId) const |
no test coverage detected