Ignore:
Timestamp:
12/18/14 12:49:55 (8 years ago)
Author:
Maciej Komosinski
Message:

Added Model::move() and Model::rotate()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/model/model.cpp

    r269 r274  
    12831283}
    12841284
     1285void Model::move(const Pt3D& shift)
     1286{
     1287FOREACH(Part*,p,parts)
     1288        p->p+=shift;
     1289}
     1290
     1291void Model::rotate(const Orient& rotation)
     1292{
     1293FOREACH(Part*,p,parts)
     1294        {
     1295        p->p=rotation.transform(p->p);
     1296        p->setOrient(rotation.transform(p->o));
     1297        }
     1298}
     1299
    12851300void Model::buildUsingNewShapes(const Model& old, Part::Shape default_shape, float thickness)
    12861301{
Note: See TracChangeset for help on using the changeset viewer.