Ignore:
Timestamp:
06/07/17 12:01:16 (7 years ago)
Author:
Maciej Komosinski
Message:
  • fF foraminifera encoding supports scaling (radius) of the initial chamber (three new parameters added: radii for x,y,z)
  • mutation ignores these three parameters
  • float -> double for consistency everywhere
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fF/fF_genotype.h

    r348 r667  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2015  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2017  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     
    1414{
    1515        int number_of_chambers;
    16         double scalex, scaley, scalez;
     16        double radius0x, radius0y, radius0z; //radius of 0th (initial) chamber
     17        double scalex, scaley, scalez; //(cumulative) scaling of consecutive chambers
    1718        double translation;
    1819        double angle1, angle2;
     20#define fF_PROPS_TO_MUTATE {0,4,5,6,7,8,9} //indexes of properties from paramtab; keep synchronized with fF_genotype.cpp
    1921
    2022        static ParamEntry paramtab[];
    2123        Param param;
    2224
    23         fF_growth_params()
    24                 :param(paramtab, this)
     25        fF_growth_params() :param(paramtab, this)
    2526        {
    2627                reset();
     
    3637                SString s = serialized;
    3738                int p = 0; //position in string
    38                 return ((param.load2(s, p) == 7) && (p == s.len()));
     39                return ((param.load2(s, p) == param.getPropCount()) && (p == s.len()));
    3940        }
    4041
Note: See TracChangeset for help on using the changeset viewer.