VTK  9.5.2
vtkTableBasedClipCases.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright (c) 2000 - 2009, Lawrence Livermore National Security, LLC
3// SPDX-License-Identifier: BSD-3-Clause
4
5#ifndef vtkTableBasedClipCases_h
6#define vtkTableBasedClipCases_h
7
8#include "vtkFiltersGeneralModule.h"
9#include "vtkSetGet.h"
10#include "vtkCellType.h"
11
12#include <array>
13#include <cstdint>
14#include <type_traits>
15
16VTK_ABI_NAMESPACE_BEGIN
17class VTKFILTERSGENERAL_EXPORT vtkTableBasedClipCasesBase
18{
19public:
20 // Points of original cell (up to 8, for the hex)
21 // Note: we assume P0 is zero in several places.
22 // Note: we assume these values are contiguous and monotonic.
23 static constexpr uint8_t P0 = 0;
24 static constexpr uint8_t P1 = 1;
25 static constexpr uint8_t P2 = 2;
26 static constexpr uint8_t P3 = 3;
27 static constexpr uint8_t P4 = 4;
28 static constexpr uint8_t P5 = 5;
29 static constexpr uint8_t P6 = 6;
30 static constexpr uint8_t P7 = 7;
31
32 // Edges of original cell (up to 12, for the hex)
33 // Note: we assume these values are contiguous and monotonic.
34 static constexpr uint8_t EA = 8;
35 static constexpr uint8_t EB = 9;
36 static constexpr uint8_t EC = 10;
37 static constexpr uint8_t ED = 11;
38 static constexpr uint8_t EE = 12;
39 static constexpr uint8_t EF = 13;
40 static constexpr uint8_t EG = 14;
41 static constexpr uint8_t EH = 15;
42 static constexpr uint8_t EI = 16;
43 static constexpr uint8_t EJ = 17;
44 static constexpr uint8_t EK = 18;
45 static constexpr uint8_t EL = 19;
46
47 // New interpolated point (ST_PNT outputs)
48 static constexpr uint8_t N0 = 20;
49