OSDN Git Service

[バグ修正]
authornyatla <nyatla@7cac0a50-4618-4814-88d0-24b83990f816>
Mon, 11 May 2009 03:12:16 +0000 (03:12 +0000)
committernyatla <nyatla@7cac0a50-4618-4814-88d0-24b83990f816>
Mon, 11 May 2009 03:12:16 +0000 (03:12 +0000)
NyARTransMat#transmatContinue関数で、directionが反映できていない問題を修正

git-svn-id: http://svn.sourceforge.jp/svnroot/nyartoolkit/NyARToolkit@231 7cac0a50-4618-4814-88d0-24b83990f816

trunk/src/jp/nyatla/nyartoolkit/core/transmat/NyARTransMat.java

index 357c106..c4cb01e 100644 (file)
@@ -152,17 +152,10 @@ public class NyARTransMat implements INyARTransMat
                this.updateMatrixValue(this._rotmatrix, this._offset.point, trans,o_result_conv);\r
                return;\r
        }\r
-       /**\r
-        * double arGetTransMatCont( ARMarkerInfo *marker_info, double prev_conv[3][4],double center[2], double width, double conv[3][4] )\r
-        * \r
-        * @param i_square\r
-        * @param i_direction\r
-        * マーカーの方位を指定する。\r
-        * @param i_width\r
-        * @param io_result_conv\r
-        * 計算履歴を持つNyARTransMatResultオブジェクトを指定する。 履歴を持たない場合は、transMatと同じ処理を行う。\r
-        * @return\r
-        * @throws NyARException\r
+\r
+       /*\r
+        * (non-Javadoc)\r
+        * @see jp.nyatla.nyartoolkit.core.transmat.INyARTransMat#transMatContinue(jp.nyatla.nyartoolkit.core.NyARSquare, int, double, jp.nyatla.nyartoolkit.core.transmat.NyARTransMatResult)\r
         */\r
        public void transMatContinue(NyARSquare i_square, int i_direction, double i_width, NyARTransMatResult io_result_conv) throws NyARException\r
        {\r
@@ -175,6 +168,9 @@ public class NyARTransMat implements INyARTransMat
                        this.transMat(i_square, i_direction, i_width, io_result_conv);\r
                        return;\r
                }\r
+\r
+               //計算用に頂点情報を初期化(順番調整)\r
+               initVertexOrder(i_square, i_direction, sqvertex_ref,linear_ref);\r
                \r
                //基準矩形を設定\r
                this._offset.setSquare(i_width,this._center);\r