version 1.82 | version 1.83 |
---|
| |
// Copyright (c) 2001-2002 Board of Trustees of the University of Illinois | // Copyright (c) 2001-2002 Board of Trustees of the University of Illinois |
// Theoretical Biophysics Group http://www.ks.uiuc.edu/ | // Theoretical Biophysics Group http://www.ks.uiuc.edu/ |
// | // |
// $Id: MolecGraphics.java,v 1.82 2002/09/05 18:01:53 mbach Exp $ | // $Id: MolecGraphics.java,v 1.83 2002/10/14 15:18:16 mbach Exp $ |
// | // |
| |
import com.sun.j3d.utils.applet.MainFrame; | import com.sun.j3d.utils.applet.MainFrame; |
| |
int numberOfLines = 0; | int numberOfLines = 0; |
for(int i=0; i<neighbors.length; i++) { | for(int i=0; i<neighbors.length; i++) { |
numberOfLines += neighbors[i].length; | numberOfLines += neighbors[i].length; |
| } |
| |
| if(numberOfLines == 0) { |
| return new BranchGroup(); |
} | } |
| |
float[] vertexArray = new float[6*numberOfLines]; | float[] vertexArray = new float[6*numberOfLines]; |