Browse Source

export lorenz

master
unknown 14 years ago
parent
commit
5adcdc1f74
  1. 2
      Attractor.cpp
  2. 4
      Projector.cpp
  3. 4
      attractors/testLorenz.stf

2
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<Projector*>::iterator it = projectors.begin(); it != projectors.end(); it++ ) {

4
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);
}
}

4
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"