A part is one of the convex geometrical element that composes the physical object.
More...
|
|
| Part (const Polygone &shape, double height) |
| | Constructor, builds a shaped part without any texture; shape must be closed and convex.
|
| |
|
| Part (const Polygone &shape, double height, const Textures &textures) |
| | Constructor, builds a shaped part with a textured shape; shape must be closed and convex.
|
| |
|
| Part (double l1, double l2, double height) |
| | Constructor, builds a rectangular part of size l1xl2, with a given height and color, and update radius.
|
| |
|
void | applyTransformation (const Matrix22 &rot, const Point &trans, double *radius) |
| | Compute the shape of this part wrt a particular rotation and translation.
|
| |
|
double | getHeight () const |
| |
|
double | getArea () const |
| |
|
const Polygone & | getShape () const |
| |
|
const Polygone & | getTransformedShape () const |
| |
|
const Point & | getCentroid () const |
| |
|
const Point & | getTransformedCentroid () const |
| |
|
const Textures & | getTextures () const |
| |
|
bool | isTextured () const |
| |
A part is one of the convex geometrical element that composes the physical object.