From 98350b34d1826e1d6687f18c45b0fbc6a3488742 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Tue, 25 Feb 2020 23:12:31 -0500 Subject: More fixes on new features --- spheres.cpp | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) (limited to 'spheres.cpp') diff --git a/spheres.cpp b/spheres.cpp index 0067cc8..9ca2036 100644 --- a/spheres.cpp +++ b/spheres.cpp @@ -8,30 +8,7 @@ #include "animation.hpp" const unsigned D = 2; -typedef Model, double> model; - -Gen, double> eGen(double L) { - std::vector> torusVectors = torus_vecs(L); - std::vector> torusMatrices = torus_mats(); - return [L, torusVectors, - torusMatrices](Model, double>& M, - Rng& r) -> Transformation, double>* { - Matrix m; - Vector t; - - m = r.pick(torusMatrices); - t(0) = r.uniform(0, L); - t(1) = r.uniform(0, L); - t = t - m * t; - - TorusGroup g = TorusGroup({(double)L, t, m}); - - Spin* ss = r.pick(M.s); - - return new SpinFlip, double>(M, g, ss); - }; -} - +typedef Model, Radius> model; int main(int argc, char* argv[]) { const unsigned D = 2; @@ -89,7 +66,7 @@ int main(int argc, char* argv[]) { return H * s.x(1); }; - auto g = eGen(L); + auto g = uniformGenTorus(L); std::ofstream ofile("test.dat"); Animation, Radius> A(L, 750, argc, argv, 1000, true); model sphere(L, Z, B); -- cgit v1.2.3-54-g00ecf