Encode a cell id and a VTK cell type (eg. VTK_TRIANGLE) into a vtkTypeUInt64.
| 134 | // Encode a cell id and a VTK cell type (eg. VTK_TRIANGLE) into a |
| 135 | // vtkTypeUInt64. |
| 136 | static vtkTypeUInt64 Encode(vtkIdType cellId, VTKCellType type) noexcept |
| 137 | { |
| 138 | const size_t typeIndex = static_cast<size_t>(type); |
| 139 | return ((static_cast<vtkTypeUInt64>(cellId) & CELLID_MASK) | |
| 140 | (static_cast<vtkTypeUInt64>(TargetVarTable[typeIndex]) << 60)); |
| 141 | } |
| 142 | |
| 143 | TaggedCellId() noexcept = default; |
| 144 |
no outgoing calls
no test coverage detected