Changeset 732 for cpp/frams/genetics/f1
- Timestamp:
- 02/15/18 00:42:07 (7 years ago)
- Location:
- cpp/frams/genetics/f1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/f1/conv_f1.cpp
r726 r732 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-201 7Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2018 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 14 14 15 15 F1Props stdprops = { 1, 0, 1, 0.4, 0.25, 0.25, 0.25, 0.25, 0.0, 1.0, 1.0, 1, 16 16 0.2, 0.5, 0.5, 0.5 }; 17 17 18 18 class Builder … … 106 106 107 107 /** main conversion function - with conversion map support */ 108 SString GenoConv_f1::convert(SString &i, MultiMap *map )108 SString GenoConv_f1::convert(SString &i, MultiMap *map, bool using_checkpoints) 109 109 { 110 110 const char* g = i.c_str(); 111 111 Builder builder(g, map ? 1 : 0); 112 builder.model.open( );112 builder.model.open(using_checkpoints); 113 113 builder.grow(-1, g, Pt3D_0, stdprops, -1); // uses Model::addFromString() to create model elements 114 114 if (builder.invalid) return SString(); … … 242 242 243 243 if (c.muscle_reset_range) c.muscle_bend_range = 1.0; else c.muscle_reset_range = true; 244 model.checkpoint(); 244 245 grow(part2, g + 1, Pt3D_0, c, branching_part); 245 246 return; -
cpp/frams/genetics/f1/conv_f1.h
r671 r732 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-201 7Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2018 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 69 69 mapsupport = 1; 70 70 } 71 SString convert(SString &i, MultiMap *map );71 SString convert(SString &i, MultiMap *map, bool using_checkpoints); 72 72 ~GenoConv_f1() {} 73 73 };
Note: See TracChangeset
for help on using the changeset viewer.