Wildmeshing Toolkit
tuple_vector_to_homogeneous_simplex_vector.cpp
Go to the documentation of this file.
1
2
#include "
tuple_vector_to_homogeneous_simplex_vector.hpp
"
3
4
#include <
wmtk/Mesh.hpp
>
5
6
#include <algorithm>
7
#include <iterator>
8
9
namespace
wmtk::simplex::utils
{
10
std::vector<Simplex>
tuple_vector_to_homogeneous_simplex_vector
(
11
const
Mesh
& m,
12
const
std::vector<Tuple>& tups,
13
PrimitiveType
primitive)
14
{
15
std::vector<Simplex> r;
16
r.reserve(tups.size());
17
std::transform(
18
tups.begin(),
19
tups.end(),
20
std::back_inserter(r),
21
[&m, primitive](
const
Tuple
& t) { return Simplex(m, primitive, t); });
22
return
r;
23
}
24
}
// namespace wmtk::simplex::utils
Mesh.hpp
wmtk::Mesh
Definition:
Mesh.hpp:106
wmtk::Tuple
Definition:
Tuple.hpp:42
wmtk::simplex::utils
Definition:
Mesh.hpp:73
wmtk::simplex::utils::tuple_vector_to_homogeneous_simplex_vector
std::vector< Simplex > tuple_vector_to_homogeneous_simplex_vector(const Mesh &m, const std::vector< Tuple > &tups, PrimitiveType primitive)
Definition:
tuple_vector_to_homogeneous_simplex_vector.cpp:10
wmtk::PrimitiveType
PrimitiveType
Definition:
PrimitiveType.hpp:9
tuple_vector_to_homogeneous_simplex_vector.hpp
src
wmtk
simplex
utils
tuple_vector_to_homogeneous_simplex_vector.cpp
Generated by
1.9.1