Revision: 5245
Author:   hansonr
Date:     2006-06-26 21:27:12 -0700 (Mon, 26 Jun 2006)
ViewCVS:  http://svn.sourceforge.net/jmol/?rev=5245&view=rev

Log Message:
-----------
bob200603 allows mesh to have points that are "not available" or NaN

Modified Paths:
--------------
    branches/bob200603/Jmol/src/org/jmol/viewer/Mesh.java
Modified: branches/bob200603/Jmol/src/org/jmol/viewer/Mesh.java
===================================================================
--- branches/bob200603/Jmol/src/org/jmol/viewer/Mesh.java       2006-06-27 
04:21:05 UTC (rev 5244)
+++ branches/bob200603/Jmol/src/org/jmol/viewer/Mesh.java       2006-06-27 
04:27:12 UTC (rev 5245)
@@ -178,6 +178,8 @@
 
   void addTriangle(int vertexA, int vertexB, int vertexC) {
     //System.out.println("mesh.addTriangle " + vertexA + " " + vertexB + " " + 
vertexC + " " + vertices[vertexA]+vertices[vertexB]+vertices[vertexC]);
+    if 
(Float.isNaN(vertices[vertexA].x)||Float.isNaN(vertices[vertexB].x)||Float.isNaN(vertices[vertexC].x))
+      return;
     if (polygonCount == 0)
       polygonIndexes = new int[256][];
     else if (polygonCount == polygonIndexes.length)


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


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-commits

Reply via email to