Rotation component added to transformations

To correctly express any transformation, we need to also include the rotation component, and this was added to the sketch transformations. A simple example to understand how transformations will be handled: we draw a rectangle and extrude it to create a parallelepiped. The sketch containing the initial rectangle is the reference sketch and all transformations for the parallelepiped faces are relative to it (note: the reference sketch axis location is not necessarily one of the points of the rectangle, depending on how the sketch was built). Each face is defined through a transformation that contains a rotation and a translation component.
For us to define a rotation, we need the angle of rotation (in this case, it’s 90 degrees for all faces except the top one) and an axis of rotation. The axis of rotation is the edge common to the two faces, located in the origin of the first sketch. The reason for this is that we want the rotation to be a ‘clean’ rotation, without any translation component.
The translation component is calculated after the rotation is performed and is a translation to the position of the sketch’s axis.

The transformation is set correctly on sketch creation, but there are some bugs when the point are drawn on sketch. There are several places where we made adaptations to the old transformation code to compensate for the problems in that implementation and they are creating bugs in this implementation.

  0 COMMENTS
Status report

Leave a Reply

Pages
Blogroll





The best Android Market
AndroidPit