Gunnar wrote: > I have downloaded the source code for Jmol, and currently am in the > process of looking through how you render all the elements, as well as the > importing and exporting features of Jmol. I am very interested in being > able to work on this project to further enhance the capabilities of Jmol.
Good. > However, I would like to understand more about the project first. If you > don't mind, I have a few questions for you. > > 1) I have seen that you clip the diameter of spheres in the Sphere3D.java, > part of the g3d package to 128 maximum using the maxSphereCache variable. > What unit does the 128 refer to? Is it angstroms? This '128' refers to on-screen diameter of a sphere, measured in pixels. The job of Sphere3D.java is to render spheres centered at screen coordinates in 3D with the specified diameter. For spheres >= maxSphereCache a different rendering routine is used. The cache is one quarter of a sphere, with an int value representing each pixel. So, a sphere of diameter 128 has a radius of 64. 64^2 = 4096 * PI/4 * 4 = 12K bytes used that cache entry. > Do you have everything > defined in a single file or are these definitions spread over each of the > individual functions? I don't understand the question. In this particular case, the value 128 is local to the Sphere3D implementation. Noone else needs to know about this value. There is really no reason why anyone would ever use it. If we didn't need to worry about old 1.1 JVMs, and we could assume lots of memory, then we might bump this value up. > 2) How does your unit notation and RasMol's unit notation compare? > Meaning, for 100 units in RasMol, how many angstroms or units do you apply > in Jmol? I'm not sure I fully understand your question. RasMol defines a special 'RasMol unit' ... there are 250 rasmol units per angstrom ... an unfortunate design error in my opinion. Jmol fully supports RasMol units, so if you say 'spacefill 250' you will get a 1.0 angstrom radius in RasMol, Chime, and Jmol. I recommend that people writing modern scripts always specify values in decimal values of angstroms, rather than propogating this unfortunate flaw. > 3) This is a question about software, rather than Jmol code. Do you have a > preference for using a specific Java development API such as Eclipse? I use emacs. > Is your source code setup to work with one of these environments? Some other developers (nico + ?) use Eclipse. > Thank you very much for your time, Thanks for your interest in Jmol. Miguel ----- Open Source Molecular Visualization www.jmol.org [EMAIL PROTECTED] ----- ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Jmol-developers mailing list Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers