From: Miguel <mig...@us...> - 2006-01-26 22:14:09
|
Update of /cvsroot/jmol/Jmol/src/org/jmol/viewer In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4298/src/org/jmol/viewer Modified Files: Eval.java Sticks.java Log Message: connect functionality Index: Eval.java =================================================================== RCS file: /cvsroot/jmol/Jmol/src/org/jmol/viewer/Eval.java,v retrieving revision 1.78 retrieving revision 1.79 diff -u -r1.78 -r1.79 --- Eval.java 19 Jan 2006 03:21:03 -0000 1.78 +++ Eval.java 26 Jan 2006 22:14:01 -0000 1.79 @@ -3660,14 +3660,18 @@ void connect() throws ScriptException { viewer.setShapeProperty(JmolConstants.SHAPE_STICKS, "maxDistance", new Float(100000000f)); + if (statementLength == 1) { + viewer.rebond(); + return; + } for (int i = 1; i < statementLength; ++i) { String propertyName = null; Object propertyValue = null; switch (statement[i].tok) { case Token.on: case Token.off: - notImplemented(i); - break; + viewer.rebond(); + return; case Token.integer: propertyName = "maxDistance"; propertyValue = new Float(statement[i].intValue); Index: Sticks.java =================================================================== RCS file: /cvsroot/jmol/Jmol/src/org/jmol/viewer/Sticks.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- Sticks.java 19 Jan 2006 03:21:03 -0000 1.10 +++ Sticks.java 26 Jan 2006 22:14:01 -0000 1.11 @@ -124,8 +124,6 @@ } void addBonds(float maxDistance, BitSet bsA, BitSet bsB) { - System.out.println("addBonds was called with maxDistance=" + maxDistance + - "\nbsA=" + bsA + " bsB=" + bsB); int atomCount = frame.atomCount; Atom[] atoms = frame.atoms; float maxDistanceSquared = maxDistance * maxDistance; |