Revision: 46844
          http://brlcad.svn.sourceforge.net/brlcad/?rev=46844&view=rev
Author:   erikgreenwald
Date:     2011-09-21 21:27:04 +0000 (Wed, 21 Sep 2011)
Log Message:
-----------
initialize intersect points. minor cleanup

Modified Paths:
--------------
    brlcad/trunk/src/libgcv/bottess.c

Modified: brlcad/trunk/src/libgcv/bottess.c
===================================================================
--- brlcad/trunk/src/libgcv/bottess.c   2011-09-21 21:23:21 UTC (rev 46843)
+++ brlcad/trunk/src/libgcv/bottess.c   2011-09-21 21:27:04 UTC (rev 46844)
@@ -414,7 +414,7 @@
 HIDDEN int
 split_face(struct soup_s *left, unsigned long int left_face, struct soup_s 
*right, unsigned long int right_face, const struct bn_tol *tol) {
     struct face_s *lf, *rf;
-    vect_t isectpt[2];
+    vect_t isectpt[2] = {{0,0,0},{0,0,0}};
     int coplanar;
 
     lf = left->faces+left_face;
@@ -425,9 +425,9 @@
        return 2;
     splitty++;
     
-    /* do the actual face split *
+
+    /* do the actual face split */
     bu_log("%f,%f,%f %f,%f,%f\n", V3ARGS(isectpt[0]), V3ARGS(isectpt[1]));
-    */
 
     return -1;
 }
@@ -484,17 +484,13 @@
        nmg_vertex_gv(vert[2], soup->faces[i].vert[2]);
        nmg_calc_face_g(fu);
 
-       if(nmg_fu_planeeqn(fu, tol)) {
+       if(nmg_fu_planeeqn(fu, tol))
            bu_log("Tiny tri!\n");
-       }
-
     }
 
-    if(nmg_kill_cracks(s)) {
-       if(nmg_ks(s)) {
+    if(nmg_kill_cracks(s))
+       if(nmg_ks(s))
            return NULL;
-       }
-    }
 
     bu_log("%d faces\n", soup->nfaces);
     return r;

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


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to