New method for getting the Sketch Transformation

Yesterday I changed the way the transformation is calculated on Start Sketch – the old way involved calculating the rotation axis and angle and performing a rotation and a translation. There were some problems with this code for special cases and I tried to find another way of setting the transformation. After some testing I decided to use the SetTransformation method in the gpTrsf class. It creates a transformation from one coordinate system to another and with some small changes I will be able to include it instead of the old calculation.

The other problem I’ve been trying to fix remains – finding the correct order in which transformations should be performed. I created some tests for the basic situations, but the more complex cases aren’t covered yet. The recursive implementation I added last week returns the correct value in some cases, but not all.

 

  0 COMMENTS
Status report

Leave a Reply

Pages
Blogroll





The best Android Market
AndroidPit