code: public static final Atom[] getAllAtomArray(Structure s, int model) {
  		List<Atom> atoms = new ArrayList<Atom>();
  
  		AtomIterator iter = new AtomIterator(s,model);
  		while (iter.hasNext()) {
  			Atom a = iter.next();
  			atoms.add(a);
  		}
  		return atoms.toArray(new Atom[atoms.size()]);
  
  	}
docs: Convert all atoms of the structure (specified model) into an Atom array
  
  @param s
  input structure
  @return all atom array