Browse Source

export lorenz

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

2
Attractor.cpp

@ -43,7 +43,7 @@ void Attractor::init_range() {
} }
// update ranges // update ranges
for ( unsigned int i = 0; i < 100000; i++ ) { for ( unsigned int i = 0; i < 500000; i++ ) {
iterate(); iterate();
for ( std::vector<Projector*>::iterator it = projectors.begin(); it != projectors.end(); it++ ) { for ( std::vector<Projector*>::iterator it = projectors.begin(); it != projectors.end(); it++ ) {

2
Projector.cpp

@ -78,8 +78,10 @@ void Projector::plot(const double * point) {
double position[] = {x,y,z}; double position[] = {x,y,z};
if (-1.0 < x && x < 1.0 && -1.0 < y && y < 1.0 && -1.0 < z && z < 1.0){
canvas->plot(position); canvas->plot(position);
} }
}
void Projector::output(){ void Projector::output(){

4
attractors/testLorenz.stf

@ -2,9 +2,9 @@
input: "attractor" input: "attractor"
output: "png" output: "png"
attractor: { AttractorKernel: {
type: lorenz/unravel/polynomial/polynomial a/logistic type: lorenz/unravel/polynomial/polynomial a/logistic
=> "Lorenz" => "lorenz"
dimensions: most types only support 3D dimensions: most types only support 3D
=> "3" => "3"