Changeset 125 for cpp/frams


Ignore:
Timestamp:
02/10/14 17:13:09 (11 years ago)
Author:
sz
Message:

f9: APPLY_DETERMINISTIC_BODY_NOISE enabled by default

Location:
cpp/frams/genetics/f9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/f9/conv_f9.cpp

    r120 r125  
    88#include <common/nonstd_stl.h> //ARRAY_LENGTH
    99
    10 //#define APPLY_DETERMINISTIC_BODY_NOISE
     10#define APPLY_DETERMINISTIC_BODY_NOISE //this representation easily produces perfectly vertical sticks that would stay upright forever. In most cases such infinite perfection is not desired, so we make the construct less perfect by perturbing its coordinates.
    1111
    1212GenoConv_F90::GenoConv_F90()
     
    145145}
    146146
    147 void GenoConv_F90::perturbPartLocations(Model &m) //deterministic "body noise"
     147void GenoConv_F90::perturbPartLocations(Model &m) //deterministic "body noise", see APPLY_DETERMINISTIC_BODY_NOISE
    148148{
    149149        for(int i=0;i<m.getPartCount();i++)
  • cpp/frams/genetics/f9/conv_f9.h

    r120 r125  
    4343        int addNewVertex(Model &m,vector<XYZ_LOC> &punkty,const XYZ_LOC &nowypunkt);
    4444        void setColors(Model &m); //sets fixed (independent from genes) colors and widths on a model, purely for aesthetic purposes
    45         void perturbPartLocations(Model &m); //deterministic "body noise"
     45        void perturbPartLocations(Model &m); //deterministic "body noise", see APPLY_DETERMINISTIC_BODY_NOISE
    4646};
    4747
Note: See TracChangeset for help on using the changeset viewer.