//sel poly now keeps the previous selection, converting its outline into a polygon if necessary.

This loses some blocks, if anyone cares
This commit is contained in:
TomyLobo
2011-12-27 12:07:11 +01:00
parent 76fd63d64b
commit 7d503fdc5c
4 changed files with 45 additions and 6 deletions

View File

@ -50,7 +50,7 @@ public class Polygonal2DRegion implements Region {
* Construct the region
*/
public Polygonal2DRegion() {
this(null);
this((LocalWorld) null);
}
/**
@ -84,6 +84,11 @@ public class Polygonal2DRegion implements Region {
recalculate();
}
public Polygonal2DRegion(Polygonal2DRegion region) {
this(region.world, region.points, region.minY, region.maxY);
hasY = region.hasY;
}
/**
* Get the list of points.
*