Revision: 55280
          http://sourceforge.net/p/brlcad/code/55280
Author:   bob1961
Date:     2013-05-01 18:43:34 +0000 (Wed, 01 May 2013)
Log Message:
-----------
Minor tweak to rt_metaball_get.

Modified Paths:
--------------
    brlcad/trunk/src/librt/primitives/metaball/metaball.c

Modified: brlcad/trunk/src/librt/primitives/metaball/metaball.c
===================================================================
--- brlcad/trunk/src/librt/primitives/metaball/metaball.c       2013-05-01 
18:31:17 UTC (rev 55279)
+++ brlcad/trunk/src/librt/primitives/metaball/metaball.c       2013-05-01 
18:43:34 UTC (rev 55280)
@@ -923,14 +923,20 @@
 {
     struct rt_metaball_internal *mb = (struct rt_metaball_internal 
*)intern->idb_ptr;
     struct wdb_metaballpt *mbpt = NULL;
+    int first = 1;
 
     RT_METABALL_CK_MAGIC(mb);
 
     /* write crap in */
     bu_vls_printf(logstr, "metaball %d %.25G {", mb->method, mb->threshold);
     for (BU_LIST_FOR(mbpt, wdb_metaballpt, &mb->metaball_ctrl_head))
+       if (first) {
+           first = 0;
            bu_vls_printf(logstr, "{%.25G %.25G %.25G %.25G %.25G}",
                            V3ARGS(mbpt->coord), mbpt->fldstr, mbpt->sweat);
+       } else
+           bu_vls_printf(logstr, " {%.25G %.25G %.25G %.25G %.25G}",
+                           V3ARGS(mbpt->coord), mbpt->fldstr, mbpt->sweat);
     bu_vls_printf(logstr, "}");
 
     return 0;

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


------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to