double af = 6.28 / pointNum;
for (double a = 0; a < 6.28; a += af) {
double dx = Math.sin(a) * distance;
double dy = Math.cos(a) * distance;
CPoint pp = new Coordinate2D(p.getX() + dx, p.getY() + dy);
points.add(pp);
}
CoordSeqEditor ls = new CoordSeqEditor(points);
ls.close();
Polygon pg = new Polygon(new Ring(ls.toCoordinateSeq()));