43 constexpr std::array<unsigned int, 8> local_vertex_numbering{
44 {0, 1, 5, 4, 2, 3, 7, 6}};
53 reorder_new_to_old_style(std::vector<
CellData<1>> &)
58 reorder_new_to_old_style(std::vector<
CellData<2>> &cells)
60 for (
auto &cell : cells)
66 reorder_new_to_old_style(std::vector<
CellData<3>> &cells)
69 for (
auto &cell : cells)
74 cell.
vertices[i] = tmp[local_vertex_numbering[i]];
83 reorder_old_to_new_style(std::vector<
CellData<1>> &)
88 reorder_old_to_new_style(std::vector<
CellData<2>> &cells)
91 reorder_new_to_old_style(cells);
96 reorder_old_to_new_style(std::vector<
CellData<3>> &cells)
100 for (
auto &cell : cells)
105 cell.
vertices[local_vertex_numbering[i]] = tmp[i];
112template <
int dim,
int spacedim>
115 const bool use_new_style_ordering)
118 ExcMessage(
"List of elements to orient must have at least one cell"));
125 if (use_new_style_ordering ==
false)
126 reorder_old_to_new_style(cells);
131 if (use_new_style_ordering ==
false)
132 reorder_new_to_old_style(cells);
175 const std::vector<
Point<2>> &all_vertices,
177 const bool use_new_style_ordering)
179 if (!use_new_style_ordering)
180 reorder_old_to_new_style(cells);
184 if (!use_new_style_ordering)
185 reorder_new_to_old_style(cells);
205 const std::vector<
Point<3>> &all_vertices,
207 const bool use_new_style_ordering)
209 if (!use_new_style_ordering)
210 reorder_old_to_new_style(cells);
214 if (!use_new_style_ordering)
215 reorder_new_to_old_style(cells);
static void reorder_cells(std::vector< CellData< dim > > &original_cells, const bool use_new_style_ordering=false)
static void invert_all_cells_of_negative_grid(const std::vector< Point< spacedim > > &all_vertices, std::vector< CellData< dim > > &original_cells, const bool use_new_style_ordering=false)
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcNotImplemented()
#define Assert(cond, exc)
static ::ExceptionBase & ExcMessage(std::string arg1)
void swap(SmartPointer< T, P > &t1, SmartPointer< T, Q > &t2)