Revision: 65384
          http://sourceforge.net/p/brlcad/code/65384
Author:   ejno
Date:     2015-06-18 15:13:17 +0000 (Thu, 18 Jun 2015)
Log Message:
-----------
check the halfspace dir's nref before searching for a COMPSPLT

Modified Paths:
--------------
    brlcad/trunk/src/libgcv/conv/fastgen4/fastgen4_write.cpp

Modified: brlcad/trunk/src/libgcv/conv/fastgen4/fastgen4_write.cpp
===================================================================
--- brlcad/trunk/src/libgcv/conv/fastgen4/fastgen4_write.cpp    2015-06-18 
14:41:55 UTC (rev 65383)
+++ brlcad/trunk/src/libgcv/conv/fastgen4/fastgen4_write.cpp    2015-06-18 
15:13:17 UTC (rev 65384)
@@ -1868,6 +1868,9 @@
     RT_CK_FULL_PATH(&half_path);
     RT_HALF_CK_MAGIC(&half);
 
+    if (DB_FULL_PATH_CUR_DIR(&half_path)->d_nref < 2)
+       return false;
+
     const vect_t normal = {0.0, 0.0, 1.0};
 
     if (!VNEAR_EQUAL(half.eqn, normal, RT_LEN_TOL))

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


------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to