mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 12:02:47 -05:00
fix orientation
This commit is contained in:
@@ -6,27 +6,27 @@
|
||||
#include <geometry.hpp>
|
||||
#include <iostream>
|
||||
|
||||
int main () {
|
||||
auto g = tc::schlafli({3,2});
|
||||
int main() {
|
||||
auto g = tc::schlafli({3, 2});
|
||||
GeomGen gg(g);
|
||||
|
||||
auto path = gg.solve().path;
|
||||
|
||||
//std::vector<std::string> = {"a", "b", "c"};
|
||||
std::string base = "";
|
||||
auto words = path.walk<std::string, std::string>(base,{"a","b","c"}, [](auto s1, auto g){return s1+g;});
|
||||
auto words = path.walk<std::string, std::string>(base, {"a", "b", "c"}, [](auto s1, auto g) { return s1 + g; });
|
||||
for (const auto word : words) {
|
||||
std::cout << word << std::endl;
|
||||
}
|
||||
|
||||
std::vector<int> gens = {0,1,2};
|
||||
std::vector<int> gens = {0, 1, 2};
|
||||
auto s = gg.triangulate(gens);
|
||||
s.print();
|
||||
return 0;
|
||||
|
||||
auto g_gens = gg.group_gens();
|
||||
std::vector<int> sg_gens = {1,2};
|
||||
auto ns = gg.tile(g_gens,sg_gens,s);
|
||||
std::vector<int> sg_gens = {1, 2};
|
||||
auto ns = gg.tile(g_gens, sg_gens, s);
|
||||
|
||||
std::cout << "Before: " << std::endl;
|
||||
std::cout << '\t';
|
||||
|
||||
@@ -39,20 +39,20 @@ int main() {
|
||||
GeomGen mbig(big);
|
||||
|
||||
auto s1 = std::chrono::system_clock::now();
|
||||
auto res1 = mbig.solve({0,1,2,3,4,7}, {2,4,7});
|
||||
auto res1 = mbig.solve({0, 1, 2, 3, 4, 7}, {2, 4, 7});
|
||||
auto e1 = std::chrono::system_clock::now();
|
||||
|
||||
std::chrono::duration<double> t1 = e1 - s1;
|
||||
std::cout << t1.count() << ": " << res1.size() << std::endl;
|
||||
|
||||
auto s2 = std::chrono::system_clock::now();
|
||||
auto res2 = mbig.solve({0,2,4,7,1,3}, {4,7,2});
|
||||
auto res2 = mbig.solve({0, 2, 4, 7, 1, 3}, {4, 7, 2});
|
||||
auto e2 = std::chrono::system_clock::now();
|
||||
|
||||
std::chrono::duration<double> t2 = e2 - s2;
|
||||
std::cout << t2.count() << ": " << res2.size() << std::endl;
|
||||
|
||||
std::vector<int> gens = {0,1,2,3,4,5};
|
||||
std::vector<int> gens = {0, 1, 2, 3, 4, 5};
|
||||
auto s3 = std::chrono::system_clock::now();
|
||||
auto res3 = mbig.triangulate(gens);
|
||||
auto e3 = std::chrono::system_clock::now();
|
||||
|
||||
Reference in New Issue
Block a user