From 5adcdc1f746e994fcf35b5090707d96d221b59fb Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 15 Jan 2011 13:13:24 +0100 Subject: [PATCH] export lorenz --- Attractor.cpp | 2 +- Projector.cpp | 4 +++- attractors/testLorenz.stf | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Attractor.cpp b/Attractor.cpp index ad8afa4..67b913c 100644 --- a/Attractor.cpp +++ b/Attractor.cpp @@ -43,7 +43,7 @@ void Attractor::init_range() { } // update ranges - for ( unsigned int i = 0; i < 100000; i++ ) { + for ( unsigned int i = 0; i < 500000; i++ ) { iterate(); for ( std::vector::iterator it = projectors.begin(); it != projectors.end(); it++ ) { diff --git a/Projector.cpp b/Projector.cpp index b497db9..e9f18d3 100644 --- a/Projector.cpp +++ b/Projector.cpp @@ -78,7 +78,9 @@ void Projector::plot(const double * point) { double position[] = {x,y,z}; - canvas->plot(position); + if (-1.0 < x && x < 1.0 && -1.0 < y && y < 1.0 && -1.0 < z && z < 1.0){ + canvas->plot(position); + } } diff --git a/attractors/testLorenz.stf b/attractors/testLorenz.stf index e406462..c08866c 100644 --- a/attractors/testLorenz.stf +++ b/attractors/testLorenz.stf @@ -2,9 +2,9 @@ input: "attractor" output: "png" -attractor: { +AttractorKernel: { type: lorenz/unravel/polynomial/polynomial a/logistic - => "Lorenz" + => "lorenz" dimensions: most types only support 3D => "3"