import java.util.*;
import recttosvg.*;
import model.*;

public class Test {

//	public static void main(String[] args) {
//		LinkedList<PointDescriptor> p = new LinkedList<PointDescriptor>();
//		p.add(new PointDescriptor(20, 5, 50, 8));
//		p.add(new PointDescriptor(35, 7, 50, 8));
//		p.add(new PointDescriptor(25, 15, 50, 8));
//		p.add(new PointDescriptor(15, 3, 50, 8));
//		p.add(new PointDescriptor(40, 20, 50, 8));
//		
//		PointDescriptorSet pSet = new PointDescriptorSet(p);
//		List<PointDescriptor> p2 = pSet.getPoints();
//		
//		for(PointDescriptor point : p2) System.out.println("("+point.getBotleft().x+"|"+point.getBotleft().y+")");
//		
//		recttosvg.saveSVG(p2);
//	}
	
	public static void main(String[] args){
		PointDescriptorSet points = new PointDescriptorSet(CsvReader.readFile("auswahl_benelux.csv"));
		
		points.findCollisionsSweepLine();
		double minScale = points.findMinimumScaleFactor();
		for(PointDescriptor point : points) System.out.println("("+point.getBotleft().x+"|"+point.getBotleft().y+")");
		
		recttosvg.saveSVG(points, "Rechtecke.svg");
		
		}

}

@@ -1078,16 +1078,93 @@
 vg%22);%0A%09%09
+recttosvg.saveSVG(points.getScaledPoints(minScale), %22RechteckeSkaliert.svg%22);
 %0A%09%09%7D%0A%0A%7D%0A

test commit