Revision: 64309
http://sourceforge.net/p/brlcad/code/64309
Author: starseeker
Date: 2015-02-27 00:45:32 +0000 (Fri, 27 Feb 2015)
Log Message:
-----------
If we have points but no convex points, we've probably got a non CCW polygon.
This test won't help for a non-convex polygon, but it may be a helpful clue in
some situations.
Modified Paths:
--------------
brlcad/trunk/src/libbn/polygon.c
Modified: brlcad/trunk/src/libbn/polygon.c
===================================================================
--- brlcad/trunk/src/libbn/polygon.c 2015-02-27 00:24:34 UTC (rev 64308)
+++ brlcad/trunk/src/libbn/polygon.c 2015-02-27 00:45:32 UTC (rev 64309)
@@ -544,6 +544,9 @@
/* If we didn't find any ears, something is wrong - possibly non CCW
inputs */
if (BU_LIST_IS_EMPTY(&(lists->ear_list->l))) {
ret = 1;
+ if (BU_LIST_IS_EMPTY(&(lists->convex_list->l)) &&
!BU_LIST_IS_EMPTY(&(lists->vertex_list->l))) {
+ bu_log("No convex points were found - this probably indicates the
points are not in CCW order\n");
+ }
goto cleanup;
}
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