9#include <kernel/geometry/intern/congruency_mapping.hpp>
28 class TargetIndexMapping
30 static_assert(face_dim_ < Shape_::dimension,
"invalid cell dimension");
31 static_assert(face_dim_ >= 0,
"invalid face dimension");
44 explicit CompIndexMap(
53 Index operator[](
int i)
const
55 return _outer[_inner[i]];
67 explicit TargetIndexMapping(
68 const TrgVerts_& target_verts,
69 const SrcVerts_& source_verts,
70 const VertIdx_& vert_idx)
72 typedef CongruencySampler<Shape_> SamplerType;
74 CompIndexMap<SrcVerts_, VertIdx_> comp_index_map(source_verts, vert_idx);
76 _cell_orient = SamplerType::compare(comp_index_map, target_verts);
79 Index map(
int face)
const
81 return Index(CongruencyMapping<Shape_, face_dim_>::map(_cell_orient, face));
std::uint64_t Index
Index data type.