Changeset 274
- Timestamp:
- 12/18/14 12:49:55 (10 years ago)
- Location:
- cpp/frams/model
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/model/model.cpp
r269 r274 1283 1283 } 1284 1284 1285 void Model::move(const Pt3D& shift) 1286 { 1287 FOREACH(Part*,p,parts) 1288 p->p+=shift; 1289 } 1290 1291 void Model::rotate(const Orient& rotation) 1292 { 1293 FOREACH(Part*,p,parts) 1294 { 1295 p->p=rotation.transform(p->p); 1296 p->setOrient(rotation.transform(p->o)); 1297 } 1298 } 1299 1285 1300 void Model::buildUsingNewShapes(const Model& old, Part::Shape default_shape, float thickness) 1286 1301 { -
cpp/frams/model/model.h
r273 r274 393 393 394 394 void disturb(double amount); 395 void move(const Pt3D& shift); 396 /// rotate around the origin (move-rotate-move to rotate around arbitrary point) 397 void rotate(const Orient& rotation); 398 /// rotate around the origin (move-rotate-move to rotate around arbitrary point) 399 void rotate(const Pt3D& angles) {Orient o=Orient_1; o.rotate(angles); rotate(o);} 395 400 396 401 /// build this model using new shapes, based on the provided model that uses old shapes. See also shapeconvert.cpp.
Note: See TracChangeset
for help on using the changeset viewer.