int addVert(String name,float x,float y,float z){
  int i=nvert;
  if (i >= maxvert) {
    if (vert == null) {
      maxvert=100;
      vert=new float[maxvert * 3];
      atoms=new Atom[maxvert];
    }
 else {
      maxvert*=2;
      float nv[]=new float[maxvert * 3];
      System.arraycopy(vert,0,nv,0,vert.length);
      vert=nv;
      Atom na[]=new Atom[maxvert];
      System.arraycopy(atoms,0,na,0,atoms.length);
      atoms=na;
    }
  }
  Atom a=atomTable.get(name.toLowerCase());
  if (a == null) {
    a=defaultAtom;
  }
  atoms[i]=a;
  i*=3;
  vert[i]=x;
  vert[i + 1]=y;
  vert[i + 2]=z;
  return nvert++;
}

int addVert ( String name , float x , float y , float z ) { int i = nvert ; if ( i >= maxvert ) { if ( vert == null ) { maxvert = 100 ; vert = new float [ maxvert * 3 ] ; atoms = new Atom [ maxvert ] ; } else { maxvert *= 2 ; float nv [ ] = new float [ maxvert * 3 ] ; System . arraycopy ( vert , 0 , nv , 0 , vert . length ) ; vert = nv ; Atom na [ ] = new Atom [ maxvert ] ; System . arraycopy ( atoms , 0 , na , 0 , atoms . length ) ; atoms = na ; } } Atom a = atomTable . get ( name . toLowerCase ( ) ) ; if ( a == null ) { a = defaultAtom ; } atoms [ i ] = a ; i *= 3 ; vert [ i ] = x ; vert [ i + 1 ] = y ; vert [ i + 2 ] = z ; return nvert ++ ; }
add a vertex to this model
