public void update(ArrayList<Triangle> triangulation) {
		ArrayList<Triangle> trianglesAdded = new ArrayList<Triangle>();
		ArrayList<Triangle> trianglesRemoved = new ArrayList<Triangle>();
		for(Triangle t : triangulation){
			if(!this.triangulation.contains(t)){
				trianglesAdded.add(t);
			}
		}
		for(Triangle t1 : this.triangulation){
			boolean contained = false;
			for(Triangle t2 : triangulation){
				if(t1.equals(t2)){
					contained = true;
				}
			}
			if(!contained){
				trianglesRemoved.add(t1);
			}
		}
		this.triangulation.clear();
		for(Triangle t : triangulation)
			this.triangulation.add(t);
		/*System.out.println("From view:");
		for(Triangle t : this.triangulation)
			System.out.println(t);
		System.out.println("\n\n***************************************");*/
		panel.setTrianglesAdded(trianglesAdded);
		panel.setTrianglesRemoved(trianglesRemoved);
		panel.repaint();
	}