mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-05 20:36:42 +00:00
Moved the polygonization code to the specific regions that are being polygonized.
Also, maxPoints no longer has confusing semantics.
This commit is contained in:
@ -530,4 +530,13 @@ public class Polygonal2DRegion extends AbstractRegion implements FlatRegion {
|
||||
clone.points = new ArrayList<BlockVector2D>(points);
|
||||
return clone;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BlockVector2D> polygonize(int maxPoints) {
|
||||
if (maxPoints >= 0 && maxPoints < points.size()) {
|
||||
throw new IllegalArgumentException("Cannot polygonize a this Polygonal2DRegion into the amount of points given.");
|
||||
}
|
||||
|
||||
return points;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user