Wildmeshing Toolkit
is_ccw.hxx
Go to the documentation of this file.
1
2
#pragma once
3
4
#include <cassert>
5
#include <
wmtk/utils/TupleInspector.hpp
>
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
TupleInspector.hpp
wmtk::Tuple
Definition:
Tuple.hpp:42
wmtk::Tuple::is_null
bool is_null() const
Checks if a tuple is "null". This merely implies the global index is -1.
Definition:
Tuple.hxx:40
wmtk::autogen::edge_mesh
Definition:
autogenerated_tables.cpp:4
wmtk::autogen::edge_mesh::is_ccw
bool is_ccw(const Tuple &t)
Definition:
is_ccw.hxx:8
wmtk::autogen::edge_mesh::tuple_is_valid_for_ccw
bool tuple_is_valid_for_ccw(const Tuple &t)
Definition:
is_ccw.hxx:14
src
wmtk
autogen
edge_mesh
is_ccw.hxx
Generated by
1.9.1