Revision: 53794
          http://brlcad.svn.sourceforge.net/brlcad/?rev=53794&view=rev
Author:   bob1961
Date:     2012-11-21 14:19:49 +0000 (Wed, 21 Nov 2012)
Log Message:
-----------
Tidy up a bit.

Modified Paths:
--------------
    brlcad/trunk/src/libged/translate_extrude.c

Modified: brlcad/trunk/src/libged/translate_extrude.c
===================================================================
--- brlcad/trunk/src/libged/translate_extrude.c 2012-11-21 13:56:30 UTC (rev 
53793)
+++ brlcad/trunk/src/libged/translate_extrude.c 2012-11-21 14:19:49 UTC (rev 
53794)
@@ -85,14 +85,15 @@
 
                VMOVE(extrude->h, hvec);
 
-               VUNITIZE(hvec);
+               /* Cross h with the existing u_vec to insure that the new v_vec 
is perpendicular to h */
+               VCROSS(extrude->v_vec, extrude->h, extrude->u_vec);
+
+               /* Cross v_vec with h to insure that the new u_vec is 
perpendicular to h as well as v_vec */
+               VCROSS(extrude->u_vec, extrude->v_vec, extrude->h);
+
+               VUNITIZE(extrude->v_vec);
                VUNITIZE(extrude->u_vec);
-               VCROSS(extrude->v_vec, hvec, extrude->u_vec);
-               VUNITIZE(extrude->v_vec);
 
-               /* Lastly, cross v_vec with h to insure u_vec is perpendicular 
to h */
-               VCROSS(extrude->u_vec, extrude->v_vec, hvec);
-
                break;
            default:
                bu_vls_printf(gedp->ged_result_str, "bad extrude attribute - 
%s", attribute);

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


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to