private void Import() throws java.io.FileNotFoundException{

		boolean searchingVertex = false;
		String line = "";
		
		Scanner scan = new Scanner(source);
		
		while (!searchingVertex) {
			line = scan.next();
			if(line.equals("v")) {searchingVertex = true;}
		}
		
		int i = 0;
		while (searchingVertex) {
			
			i++;
			double x, y ,z;
			line = scan.next();
			x = Double.parseDouble(line);
			line = scan.next();
			y = Double.parseDouble(line);
			line = scan.next();
			z = Double.parseDouble(line);
			line = scan.next();
			vertices.put(i, new Vertex(x,y,z));
			if(!line.equals("v")) {searchingVertex = false;}
		}
		
		while(!line.equals("f")) {
			line = scan.next();
		}
		
		while(scan.hasNext()) {
			line = scan.next();
			ArrayList<Vertex> face = new ArrayList<Vertex>();
			while(!line.equals("f")&&scan.hasNext()){
				face.add(vertices.get(Integer.parseInt(line)));
				line = scan.next();
			}
			if(face.size()>2) {
				mesh.add(new Triangle(face.get(0).getX(),face.get(0).getY(),face.get(1).getX(),face.get(1).getY(),face.get(2).getX(),face.get(2).getY(),face.get(0).getZ(),face.get(1).getZ(),face.get(2).getZ()));
				//System.out.println(face.get(0).getZ()+" "+face.get(1).getZ()+" "+face.get(2).getZ());
			}
			else System.out.println("End");
		}
		scan.close();
		
	}