public static Face drawDir(Direction dir,MeshModel model,double minX,double minY,double minZ,double maxX,double maxY,double maxZ,CubeTextureCoordinates textureCoordinates){
switch (dir) {
case DOWN:
    return drawDown(model,minX,minY,minZ,maxX,maxY,maxZ,textureCoordinates);
case UP:
  return drawUp(model,minX,minY,minZ,maxX,maxY,maxZ,textureCoordinates);
case NORTH:
return drawNorth(model,minX,minY,minZ,maxX,maxY,maxZ,textureCoordinates);
case SOUTH:
return drawSouth(model,minX,minY,minZ,maxX,maxY,maxZ,textureCoordinates);
case EAST:
return drawEast(model,minX,minY,minZ,maxX,maxY,maxZ,textureCoordinates);
case WEST:
return drawWest(model,minX,minY,minZ,maxX,maxY,maxZ,textureCoordinates);
}
throw new RenderException("Invalid draw direction!");
}

public static Face drawDir ( Direction dir , MeshModel model , double minX , double minY , double minZ , double maxX , double maxY , double maxZ , CubeTextureCoordinates textureCoordinates ) { switch ( dir ) { case DOWN : return drawDown ( model , minX , minY , minZ , maxX , maxY , maxZ , textureCoordinates ) ; case UP : return drawUp ( model , minX , minY , minZ , maxX , maxY , maxZ , textureCoordinates ) ; case NORTH : return drawNorth ( model , minX , minY , minZ , maxX , maxY , maxZ , textureCoordinates ) ; case SOUTH : return drawSouth ( model , minX , minY , minZ , maxX , maxY , maxZ , textureCoordinates ) ; case EAST : return drawEast ( model , minX , minY , minZ , maxX , maxY , maxZ , textureCoordinates ) ; case WEST : return drawWest ( model , minX , minY , minZ , maxX , maxY , maxZ , textureCoordinates ) ; } throw new RenderException ( "Invalid draw direction!" ) ; }
creates a face of the model in a specified direction
