Revision: 64335
http://sourceforge.net/p/brlcad/code/64335
Author: starseeker
Date: 2015-03-03 16:55:47 +0000 (Tue, 03 Mar 2015)
Log Message:
-----------
Return an error if we hit a null ear ref - not sure why it's happening yet -
doesn't seem to be CW/CCW issues...
Modified Paths:
--------------
brlcad/trunk/src/libbn/polygon.c
Modified: brlcad/trunk/src/libbn/polygon.c
===================================================================
--- brlcad/trunk/src/libbn/polygon.c 2015-03-03 16:45:20 UTC (rev 64334)
+++ brlcad/trunk/src/libbn/polygon.c 2015-03-03 16:55:47 UTC (rev 64335)
@@ -580,6 +580,11 @@
/* The next line needs to use PT_PREV_REF so point traversal
* happens in the correct order - PT_NEXT_REF doesn't work. */
struct pt_vertex_ref *ear_ref = PT_PREV_REF(lists->ear_list);
+ if (!ear_ref || !ear_ref->v) {
+ bu_log("ear list error!\n");
+ ret = 1;
+ goto cleanup;
+ }
PT_ADD_TRI(ear_ref->v);
remove_ear(ear_ref->v, lists, pts);
one_vert = PT_NEXT(vertex_list);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits