@Deprecated public List<List<Point2d>> getLeftPolygons() { List<List<Point2d>> ret = new ArrayList<List<Point2d>>(); for (SplitPolygon s : this.splitPolygons) { ret.addAll(s.getLeftPolygons()); } return ret; }
@Deprecated public List<List<Point2d>> getRightPolygons() { List<List<Point2d>> ret = new ArrayList<List<Point2d>>(); for (SplitPolygon s : this.splitPolygons) { ret.addAll(s.getRightPolygons()); } return ret; }
@Deprecated public List<List<Point2d>> getLeftPolygons() { List<List<Point2d>> ret = new ArrayList<List<Point2d>>(); for (List<Integer> p : this.polygonsLeft) { List<Point2d> polygon = makeListFromIndex(this.polygonExtanded, p); ret.add(polygon); } return ret; }
public MultiPolygonList2d getBottomMultiPolygons() { MultiPolygonList2d mp = new MultiPolygonList2d(); Set<PolygonList2d> polygons = mp.getPolygons(); for (SplitPolygon s : this.splitPolygons) { polygons.addAll(s.getBottomMultiPolygons().getPolygons()); } return mp; }
public MultiPolygonList2d getTopMultiPolygons() { MultiPolygonList2d mp = new MultiPolygonList2d(); Set<PolygonList2d> polygons = mp.getPolygons(); for (SplitPolygon s : this.splitPolygons) { polygons.addAll(s.getTopMultiPolygons().getPolygons()); } return mp; }
@Deprecated public List<List<Point2d>> getRightPolygons() { List<List<Point2d>> ret = new ArrayList<List<Point2d>>(); for (List<Integer> p : this.polygonsRight) { List<Point2d> polygon = makeListFromIndex(this.polygonExtanded, p); ret.add(polygon); } return ret; } public MultiPolygonList2d getTopMultiPolygons() {
public MultiPolygonList2d getTopMultiPolygons() { MultiPolygonList2d mp = new MultiPolygonList2d(); Set<PolygonList2d> polygons = mp.getPolygons(); for (List<Integer> p : this.polygonsRight) { List<Point2d> polygon = makeListFromIndex(this.polygonExtanded, p); PolygonList2d polygonList = new PolygonList2d(polygon); polygons.add(polygonList); } return mp; }
public MultiPolygonList2d getBottomMultiPolygons() { MultiPolygonList2d mp = new MultiPolygonList2d(); Set<PolygonList2d> polygons = mp.getPolygons(); for (List<Integer> p : this.polygonsLeft) { List<Point2d> polygon = makeListFromIndex(this.polygonExtanded, p); PolygonList2d polygonList = new PolygonList2d(polygon); polygons.add(polygonList); } return mp; }