Revision: 5157
Author: hansonr
Date: 2006-05-22 07:54:13 -0700 (Mon, 22 May 2006)
ViewCVS: http://svn.sourceforge.net/jmol/?rev=5157&view=rev
Log Message:
-----------
bob200603 isosurface preliminary JVXL format output
Modified Paths:
--------------
branches/bob200603/Jmol/src/org/jmol/viewer/Isosurface.java
Modified: branches/bob200603/Jmol/src/org/jmol/viewer/Isosurface.java
===================================================================
--- branches/bob200603/Jmol/src/org/jmol/viewer/Isosurface.java 2006-05-22
05:32:51 UTC (rev 5156)
+++ branches/bob200603/Jmol/src/org/jmol/viewer/Isosurface.java 2006-05-22
14:54:13 UTC (rev 5157)
@@ -388,7 +388,7 @@
voxelCountX = voxelData.length - 1;
voxelCountY = voxelData[0].length - 1;
voxelCountZ = voxelData[0][0].length - 1;
-
+ edgeFractions = "";
int[][] isoPointIndexes = new int[voxelCountY * voxelCountZ][12];
for (int i = voxelCountY * voxelCountZ; --i >= 0; )
isoPointIndexes[i] = new int[12];
@@ -439,6 +439,8 @@
}
}
}
+ if (collectData)
+ System.out.println(edgeFractions.length()+" "+edgeFractions);
System.out.println("volumetric=" +
voxelCountX + "," +
voxelCountY + "," +
@@ -538,10 +540,14 @@
voxelPointIndexes[triangles[i + 2]]);
}
+ String edgeFractions = "";
void calcSurfacePoint(float cutoff, float valueA, float valueB,
Point3f surfacePoint) {
float diff = valueB - valueA;
float fraction = (cutoff - valueA) / diff;
+ if (collectData)
+ edgeFractions += (int)(fraction * 8);
+
if (Float.isNaN(fraction) || fraction < 0 || fraction > 1) {
System.out.println("fraction=" + fraction +
" cutoff=" + cutoff +
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