this.max = max;
}
@Override
public void setPolygonPoint(int id, int x, int z) {
PointRectangle point = new PointRectangle(x, z);
point.setColor(LineColor.POLYPOINT);
if (id < points.size()) {
points.set(id, point);
} else {
for (int i = 0; i < id - points.size(); i++) {