MCPcopy Create free account
hub / github.com/Kitware/VTK / Encode

Function Encode

Common/DataModel/vtkPolyDataInternals.h:136–141  ·  view source on GitHub ↗

Encode a cell id and a VTK cell type (eg. VTK_TRIANGLE) into a vtkTypeUInt64.

Source from the content-addressed store, hash-verified

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

Callers 7

WriteModelDataInlineMethod · 0.85
WriteSummaryXMLMethod · 0.85
WriteDataMethod · 0.85
DoWorkMethod · 0.85
GetBase64EncodedImageFunction · 0.85
exportStaticSceneMethod · 0.85
TaggedCellIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected