random holes

This commit is contained in:
2020-03-11 20:11:03 -04:00
parent e6ba81a424
commit 2c2b6ef96b
2 changed files with 45 additions and 21 deletions

View File

@@ -182,7 +182,7 @@ std::vector<Primitive<N>> merge(const std::vector<std::vector<Primitive<N>>> &me
template<unsigned N>
[[nodiscard]]
std::vector<Primitive<N>> tile(
std::vector<std::vector<Primitive<N>>> each_tile(
std::vector<Primitive<N>> prims,
const tc::Group &context,
const std::vector<int> &g_gens,
@@ -200,6 +200,19 @@ std::vector<Primitive<N>> tile(
return apply(from, table, gen);
});
return res;
}
template<unsigned N>
[[nodiscard]]
std::vector<Primitive<N>> tile(
std::vector<Primitive<N>> prims,
const tc::Group &context,
const std::vector<int> &g_gens,
const std::vector<int> &sg_gens
) {
auto res = each_tile<N>(prims, context, g_gens, sg_gens);
return merge(res);
}