Revision: 57830
          http://sourceforge.net/p/brlcad/code/57830
Author:   starseeker
Date:     2013-09-23 15:19:12 +0000 (Mon, 23 Sep 2013)
Log Message:
-----------
More work on figuring out how to break matricies down for AP203.

Modified Paths:
--------------
    brlcad/trunk/src/conv/step/g-step/Comb_Tree.cpp

Modified: brlcad/trunk/src/conv/step/g-step/Comb_Tree.cpp
===================================================================
--- brlcad/trunk/src/conv/step/g-step/Comb_Tree.cpp     2013-09-23 15:15:18 UTC 
(rev 57829)
+++ brlcad/trunk/src/conv/step/g-step/Comb_Tree.cpp     2013-09-23 15:19:12 UTC 
(rev 57830)
@@ -174,6 +174,29 @@
                MAT4X3VEC(outv, curr_matrix, inv);
                VUNITIZE(outv);
                bu_log("AXIS2_PLACEMENT_3D ref axis: %f, %f, %f\n", outv[0], 
outv[1], outv[2]);
+
+               vect_t outx, outy, outz;
+               fastf_t xm, ym, zm;
+               VSET(inv, 0, 0, 0);
+               MAT4X3PNT(outv, curr_matrix, inv);
+               bu_log("CAERTESIAN_TRANSFORMATION_OPERATOR_3D local_origin: %f, 
%f, %f\n", outv[0], outv[1], outv[2]);
+               VSET(inv, 1, 0, 0);
+               MAT4X3VEC(outx, curr_matrix, inv);
+               xm = MAGNITUDE(outx);
+               VUNITIZE(outx);
+               bu_log("CAERTESIAN_TRANSFORMATION_OPERATOR_3D axis1: %f, %f, 
%f\n", outx[0], outx[1], outx[2]);
+               VSET(inv, 0, 1, 0);
+               MAT4X3VEC(outy, curr_matrix, inv);
+               ym = MAGNITUDE(outy);
+               VUNITIZE(outy);
+               bu_log("CAERTESIAN_TRANSFORMATION_OPERATOR_3D axis2: %f, %f, 
%f\n", outy[0], outy[1], outy[2]);
+               VSET(inv, 0, 0, 1);
+               MAT4X3VEC(outz, curr_matrix, inv);
+               zm = MAGNITUDE(outz);
+               VUNITIZE(outz);
+               bu_log("CAERTESIAN_TRANSFORMATION_OPERATOR_3D axis3: %f, %f, 
%f\n", outz[0], outz[1], outz[2]);
+               bu_log("Scaling: x: %f, y: %f, z: %f\n", xm, ym, zm);
+
            } else {
                bu_log("identity matrix\n");
            }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to