Wildmeshing Toolkit
is_ccw.hxx
Go to the documentation of this file.
1 
2 #pragma once
3 #include <cassert>
4 #include <wmtk/Tuple.hpp>
8 
9 namespace wmtk::autogen::tet_mesh {
10 inline bool is_ccw(const Tuple& tuple)
11 {
12  assert(tuple_is_valid_for_ccw(tuple));
13  using namespace utils;
14  const int64_t offset = local_id_table_offset(tuple);
15  return auto_3d_table_ccw[offset] == 1;
16 }
17 inline bool tuple_is_valid_for_ccw(const Tuple& tuple)
18 {
19  using namespace utils;
20  const int64_t offset = local_id_table_offset(tuple);
21  return auto_3d_table_ccw[offset] != -1;
22 }
23 } // namespace wmtk::autogen::tet_mesh
bool tuple_is_valid_for_ccw(const Tuple &t)
Definition: is_ccw.hxx:17
bool is_ccw(const Tuple &t)
Definition: is_ccw.hxx:10
int64_t local_id_table_offset(const Tuple &t)
const int64_t auto_3d_table_ccw[96]