Revision: 21253
          http://sourceforge.net/p/jmol/code/21253
Author:   hansonr
Date:     2016-10-03 02:52:34 +0000 (Mon, 03 Oct 2016)
Log Message:
-----------
allows debugging annotation of exports

Modified Paths:
--------------
    trunk/Jmol/src/org/jmol/export/__CartesianExporter.java

Modified: trunk/Jmol/src/org/jmol/export/__CartesianExporter.java
===================================================================
--- trunk/Jmol/src/org/jmol/export/__CartesianExporter.java     2016-10-02 
17:35:03 UTC (rev 21252)
+++ trunk/Jmol/src/org/jmol/export/__CartesianExporter.java     2016-10-03 
02:52:34 UTC (rev 21253)
@@ -40,6 +40,7 @@
 import org.jmol.modelset.Atom;
 import org.jmol.util.C;
 import org.jmol.util.GData;
+import org.jmol.util.Logger;
 
 /*
  * for programs that use the standard 3D coordinates.
@@ -225,6 +226,8 @@
 
   @Override
   void drawAtom(Atom atom) {
+    if (Logger.debugging)
+      outputComment("atom " + atom);
     short colix = atom.colixAtom;
     outputSphere(atom, atom.madAtom / 2000f, colix, 
C.isColixTranslucent(colix));
   }
@@ -291,6 +294,8 @@
                     byte endcaps, int mad, int bondOrder) {
     setTempPoints(ptA, ptB, bondOrder < 0);
     float radius = mad / 2000f;
+    if (Logger.debugging)
+      outputComment("bond " + ptA + " " + ptB);
     if (colix1 == colix2) {
       outputCylinder(null, tempP1, tempP2, colix1, endcaps, radius, null, 
null, bondOrder != -1);
     } else {

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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Jmol-commits mailing list
Jmol-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-commits

Reply via email to