static boolean isShapeFine(Polygon p, int min) {
		if (p == null || p.npoints == 0)
			return false;
		int n = p.npoints;
		int xij, yij;
		for (int i = 0; i < n - 1; i++) {
			for (int j = i + 1; j < n; j++) {
				xij = p.xpoints[i] - p.xpoints[j];
				yij = p.ypoints[i] - p.ypoints[j];
				if (xij * xij + yij * yij < min * min)
					return false;
			}
		}
		return true;
	}