8 std::vector<Simplex>
make_unique(
const Mesh& m,
const std::vector<Simplex>& s)
10 std::vector<Simplex> ret = s;
20 std::vector<Simplex> simps;
21 simps.reserve(ts.size());
22 std::transform(ts.begin(), ts.end(), std::back_inserter(simps), [&](
const Tuple& t) {
23 return Simplex(m, primitive, t);
27 std::vector<Tuple> ret;
28 ret.reserve(simps.size());
30 std::transform(simps.begin(), simps.end(), std::back_inserter(ret), [](
const Simplex& s) {
std::vector< Tuple > make_unique_tuples(const Mesh &m, const std::vector< Tuple > &ts, PrimitiveType primitive)
std::vector< Simplex > make_unique(const Mesh &m, const std::vector< Simplex > &s)