Revision: 56514
          http://sourceforge.net/p/brlcad/code/56514
Author:   brlcad
Date:     2013-08-04 18:09:43 +0000 (Sun, 04 Aug 2013)
Log Message:
-----------
the more I dig, the worse it looks.  this begs for refactoring.

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

Modified: brlcad/trunk/src/libged/arb.c
===================================================================
--- brlcad/trunk/src/libged/arb.c       2013-08-04 17:47:39 UTC (rev 56513)
+++ brlcad/trunk/src/libged/arb.c       2013-08-04 18:09:43 UTC (rev 56514)
@@ -89,12 +89,13 @@
     internal.idb_ptr = (genptr_t)arb;
     arb->magic = RT_ARB_INTERNAL_MAGIC;
 
-#if 1
+    /* FIXME: we should be creating the arb at the center of the
+     * screen.  Extract bounding box code from both autoview.c and
+     * get_autoview.c into a general bounding rpp function, and use
+     * accordingly.  Should combin autoview.c with get_autoview.c
+     * (perhaps as a flag).
+     */
     VSET(arb->pt[0], 0.0, 0.0, 0.0);
-#else
-    /* put vertex of new solid at center of screen */
-    VSET(arb->pt[0], -view_state->vs_vop->vo_center[MDX], 
-view_state->vs_vop->vo_center[MDY], -view_state->vs_vop->vo_center[MDZ]);
-#endif
 
     /* calculate normal vector defined by rot, fb */
     norm1[0] = cos(fb) * cos(rota);

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


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to