Revision: 52710
          http://brlcad.svn.sourceforge.net/brlcad/?rev=52710&view=rev
Author:   brlcad
Date:     2012-10-03 05:34:37 +0000 (Wed, 03 Oct 2012)
Log Message:
-----------
we're looking for the point by value, so we can set the values into an array 
instead of using a pointer (for getPointReference()).

Modified Paths:
--------------
    brlcad/trunk/src/libgcv/wfobj/tri_face.c

Modified: brlcad/trunk/src/libgcv/wfobj/tri_face.c
===================================================================
--- brlcad/trunk/src/libgcv/wfobj/tri_face.c    2012-10-03 05:28:07 UTC (rev 
52709)
+++ brlcad/trunk/src/libgcv/wfobj/tri_face.c    2012-10-03 05:34:37 UTC (rev 
52710)
@@ -209,7 +209,7 @@
     struct edgeuse *eu;
     size_t numFaceVertices;
     int i, ref;
-    double *point;
+    double point[3];
 
     /* get nmg faceuse that represents the face specified by points */
     fu = make_faceuse_from_face(points, numPoints);
@@ -240,7 +240,7 @@
     i = 0;
     for (BU_LIST_FOR(lu, loopuse, &fu->lu_hd)) {
        for (BU_LIST_FOR(eu, edgeuse, &lu->down_hd)) {
-           point = eu->vu_p->v_p->vg_p->coord;
+           VMOVE(point, eu->vu_p->v_p->vg_p->coord);
            ref = getPointReference(point, points, numPoints, tol.dist);
            (*faces)[i++] = ref;
        }

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


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to