Changeset 740


Ignore:
Timestamp:
02/20/18 01:08:04 (7 years ago)
Author:
Maciej Komosinski
Message:

Added support for developmental phases ("checkpoints") to converters f9->f0 and fF->f0

Location:
cpp/frams/genetics
Files:
2 edited

Legend:

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

    r736 r740  
    3030        XYZ_LOC current;
    3131        Model m;
    32         m.open();
     32        m.open(using_checkpoints);
    3333        int recently_added = addSegment(m, 0, vertices, current, 0xDead);
    3434        for (int i = 0; i < in.len(); i++)
     
    4545                        current.add(delta);
    4646                        recently_added = addSegment(m, i, vertices, current, recently_added);
     47                        m.checkpoint();
    4748                }
    4849        }
  • cpp/frams/genetics/fF/conv_fF.cpp

    r736 r740  
    4343
    4444        Model m;
    45         m.open();
     45        m.open(using_checkpoints);
    4646
    4747        m.vis_style = "foram"; //dedicated visual look for Foraminifera
     
    5353        Part *p1 = addNewPart(&m, chambers[0]);
    5454        p1->scale = Pt3D(gp.radius0x, gp.radius0y, gp.radius0z); //size of the initial chamber
     55        m.checkpoint();
    5556        for (int i = 1; i < gp.number_of_chambers; i++)
    5657        {
     
    5859                p2->scale = p1->scale.entrywiseProduct(Pt3D(gp.scalex, gp.scaley, gp.scalez)); //each part's scale is its predecessor's scale * scaling
    5960                m.addNewJoint(p1, p2, Joint::SHAPE_FIXED); //all parts must be connected
     61                m.checkpoint();
    6062                p1 = p2;
    6163        }
Note: See TracChangeset for help on using the changeset viewer.