Revision: 45771
          http://brlcad.svn.sourceforge.net/brlcad/?rev=45771&view=rev
Author:   r_weiss
Date:     2011-08-03 17:42:57 +0000 (Wed, 03 Aug 2011)

Log Message:
-----------
Updated function 'rt_tor_tess' within file 'src/librt/primitives/tor/tor.c' by 
adding a call to function 'nmg_keu_zl' which removes all zero length edgeuse. 
Under certain conditions the function 'rt_tor_tess' will create a tessellated 
torus which contains zero length edgeuse which is invalid and causes a crash in 
later functions. An example of a torus which causes a crash during 'facetize' 
is object 'old.s82' within the 'm35.g' sample model. This change is disabled by 
default and supports the prototype version of function 'nmg_triangulate_fu'. 
This is a work in progress.  

Modified Paths:
--------------
    brlcad/trunk/src/librt/primitives/tor/tor.c

Modified: brlcad/trunk/src/librt/primitives/tor/tor.c
===================================================================
--- brlcad/trunk/src/librt/primitives/tor/tor.c 2011-08-03 17:31:06 UTC (rev 
45770)
+++ brlcad/trunk/src/librt/primitives/tor/tor.c 2011-08-03 17:42:57 UTC (rev 
45771)
@@ -1275,6 +1275,11 @@
        }
     }
 
+#ifdef TRI_PROTOTYPE
+    /* kill zero length edgeuse */
+    (void)nmg_keu_zl(s, tol);
+#endif
+
     /* Compute "geometry" for region and shell */
     nmg_region_a(*r, tol);
 


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

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to