Wildmeshing Toolkit
is_ccw.hxx
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <cassert>
6 
7 namespace wmtk::autogen::edge_mesh {
8 inline bool is_ccw(const Tuple& tuple)
9 {
10  assert(tuple_is_valid_for_ccw(tuple));
11  using namespace utils;
12  return TupleInspector::local_vid(tuple) == 0;
13 }
14 inline bool tuple_is_valid_for_ccw(const Tuple& tuple)
15 {
16  if (tuple.is_null()) {
17  return false;
18  }
19  return true;
20 }
21 } // namespace wmtk::autogen::edge_mesh
bool is_null() const
Checks if a tuple is "null". This merely implies the global index is -1.
Definition: Tuple.hxx:40
bool is_ccw(const Tuple &t)
Definition: is_ccw.hxx:8
bool tuple_is_valid_for_ccw(const Tuple &t)
Definition: is_ccw.hxx:14