- Timestamp:
- 02/20/18 01:08:04 (7 years ago)
- Location:
- cpp/frams/genetics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/f9/conv_f9.cpp
r736 r740 30 30 XYZ_LOC current; 31 31 Model m; 32 m.open( );32 m.open(using_checkpoints); 33 33 int recently_added = addSegment(m, 0, vertices, current, 0xDead); 34 34 for (int i = 0; i < in.len(); i++) … … 45 45 current.add(delta); 46 46 recently_added = addSegment(m, i, vertices, current, recently_added); 47 m.checkpoint(); 47 48 } 48 49 } -
cpp/frams/genetics/fF/conv_fF.cpp
r736 r740 43 43 44 44 Model m; 45 m.open( );45 m.open(using_checkpoints); 46 46 47 47 m.vis_style = "foram"; //dedicated visual look for Foraminifera … … 53 53 Part *p1 = addNewPart(&m, chambers[0]); 54 54 p1->scale = Pt3D(gp.radius0x, gp.radius0y, gp.radius0z); //size of the initial chamber 55 m.checkpoint(); 55 56 for (int i = 1; i < gp.number_of_chambers; i++) 56 57 { … … 58 59 p2->scale = p1->scale.entrywiseProduct(Pt3D(gp.scalex, gp.scaley, gp.scalez)); //each part's scale is its predecessor's scale * scaling 59 60 m.addNewJoint(p1, p2, Joint::SHAPE_FIXED); //all parts must be connected 61 m.checkpoint(); 60 62 p1 = p2; 61 63 }
Note: See TracChangeset
for help on using the changeset viewer.