Wildmeshing Toolkit
Loading...
Searching...
No Matches
is_ccw.hxx
Go to the documentation of this file.
1
2
#pragma once
3
#include <cassert>
4
#include <
wmtk/Tuple.hpp
>
5
#include "
autogenerated_tables.hpp
"
6
#include "
local_id_table_offset.hpp
"
7
8
namespace
wmtk::autogen::tet_mesh
{
9
inline
bool
is_ccw
(
const
Tuple
& tuple)
10
{
11
assert(
tuple_is_valid_for_ccw
(tuple));
12
const
int64_t offset =
local_id_table_offset
(tuple);
13
return
auto_3d_table_ccw
[offset] == 1;
14
}
15
inline
bool
tuple_is_valid_for_ccw
(
const
Tuple
& tuple)
16
{
17
const
int64_t offset =
local_id_table_offset
(tuple);
18
return
auto_3d_table_ccw
[offset] != -1;
19
}
20
}
// namespace wmtk::autogen::tet_mesh
Tuple.hpp
wmtk::Tuple
The Tuple is the basic navigation tool in our mesh data structure.
Definition
Tuple.hpp:19
wmtk::autogen::tet_mesh
Definition
autogenerated_tables.cpp:4
wmtk::autogen::tet_mesh::tuple_is_valid_for_ccw
bool tuple_is_valid_for_ccw(const Tuple &t)
Definition
is_ccw.hxx:15
wmtk::autogen::tet_mesh::is_ccw
bool is_ccw(const Tuple &t)
Definition
is_ccw.hxx:9
wmtk::autogen::tet_mesh::local_id_table_offset
int64_t local_id_table_offset(const Tuple &t)
Definition
local_id_table_offset.hxx:5
wmtk::autogen::tet_mesh::auto_3d_table_ccw
const int64_t auto_3d_table_ccw[96]
Definition
autogenerated_tables.cpp:64
autogenerated_tables.hpp
local_id_table_offset.hpp
src
wmtk
autogen
tet_mesh
is_ccw.hxx
Generated by
1.9.8