Ignore:
Timestamp:
05/29/20 15:18:48 (4 years ago)
Author:
Maciej Komosinski
Message:

Introduced 'volume' field available by getMinPart(), getMaxPart(), getDefPart() for genetic operators to limit the range of volumes (~mass) in simulation of solids

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/model/f0-SDK-classes.h

    r932 r934  
    6363 {"vg",0,1024,"green component","f 0.0 1.0 1.0",FIELD(vcolor.y),},
    6464 {"vb",0,1024,"blue component","f 0.0 1.0 1.0",FIELD(vcolor.z),},
     65 {0,0,0,}
     66};
     67#undef FIELDSTRUCT
     68
     69
     70#define FIELDSTRUCT Part_MinMaxDef
     71ParamEntry f0_part_minmaxdef_paramtab[]=
     72{
     73 {"Geometry",1,1,"p" },
     74 {"f",0,0,"volume","f 0.1 10 1",FIELD(volume),},
     75 {0,0,0,}
     76};
     77ParamEntry f0_part_minmaxdef_xtra_paramtab[]=
     78{
     79 {"Extra properties",1,0,"p"},
    6580 {0,0,0,}
    6681};
Note: See TracChangeset for help on using the changeset viewer.