Revision: 58825
          http://sourceforge.net/p/brlcad/code/58825
Author:   starseeker
Date:     2013-12-05 14:10:49 +0000 (Thu, 05 Dec 2013)
Log Message:
-----------
Do something with the return code

Modified Paths:
--------------
    brlcad/trunk/src/librt/primitives/nmg/nmg_brep2.cpp

Modified: brlcad/trunk/src/librt/primitives/nmg/nmg_brep2.cpp
===================================================================
--- brlcad/trunk/src/librt/primitives/nmg/nmg_brep2.cpp 2013-12-05 14:00:29 UTC 
(rev 58824)
+++ brlcad/trunk/src/librt/primitives/nmg/nmg_brep2.cpp 2013-12-05 14:10:49 UTC 
(rev 58825)
@@ -89,6 +89,10 @@
 
     /* Calculate the 3D coplanar oriented bounding rectangle (obr) */
     ret += bn_3d_coplanar_obr(&obr_center, &u_axis, &v_axis, (const point_t 
*)points_3d, pnt_cnt);
+    if (ret) {
+       bu_log("Failed to get oriented bounding rectangle for NMG faceuse 
#%d\n", fu->index);
+       return -1;
+    }
     bu_free(points_3d, "done with obr 3d point inputs");
 
     /* Use the obr to define the 3D corner points of the NURBS surface */
@@ -243,7 +247,7 @@
            for (BU_LIST_FOR(fu, faceuse, &s->fu_hd)) {
                NMG_CK_FACEUSE(fu);
                if (fu->orientation != OT_SAME) continue;
-               nmg_brep_face(b, fu, tol, brepi);
+               if (nmg_brep_face(b, fu, tol, brepi)) return;
            }
            (*b)->SetTrimIsoFlags();
        }

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


------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to