Vector p2 = cent.plusTimes(pc[dim2], i);
Vector p3 = cent.minusTimes(pc[dim1], i);
Vector p4 = cent.minusTimes(pc[dim2], i);
path.moveTo(p1);
path.cubicTo(p1.plus(direction2), p2.plus(direction1), p2);
path.cubicTo(p2.minus(direction1), p3.plus(direction2), p3);
path.cubicTo(p3.minus(direction2), p4.minus(direction1), p4);
path.cubicTo(p4.plus(direction1), p1.minus(direction2), p1);
path.close();