Revision: 37504
          http://brlcad.svn.sourceforge.net/brlcad/?rev=37504&view=rev
Author:   erikgreenwald
Date:     2010-01-29 23:01:56 +0000 (Fri, 29 Jan 2010)

Log Message:
-----------
move region generation into timed segment. attempt to fix normals.

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

Modified: brlcad/trunk/src/librt/primitives/metaball/metaball_tri.c
===================================================================
--- brlcad/trunk/src/librt/primitives/metaball/metaball_tri.c   2010-01-29 
23:01:55 UTC (rev 37503)
+++ brlcad/trunk/src/librt/primitives/metaball/metaball_tri.c   2010-01-29 
23:01:56 UTC (rev 37504)
@@ -170,12 +170,14 @@
                }
            }
 
+    nmg_mark_edges_real(&s->l.magic);
+    nmg_region_a(*r, tol);
+
+    nmg_fix_normals(s, tol);
+
     rt_get_timer(&times, NULL);
     bu_log("metaball tesselate (%d triangles): %s\n", numtri, 
bu_vls_addr(&times));
 
-    nmg_mark_edges_real(&s->l.magic);
-    nmg_region_a(*r, tol);     /* this causes a bus error trying to 
dereference some magic shtuff */
-
     return 0;
 }
 


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

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to