float x = 0;
float y = 0;
RShape allLines = new RShape();
while (x < MAX_X*2 && y < MAX_X*2) {
RShape s = new RShape();
s.addMoveTo(new RPoint(0, y));
s.addLineTo(new RPoint(x, 0));
RPoint[] points = shape.getIntersections(s);
if (points != null) {
List<MyPoint> pointsList = new ArrayList<MyPoint>();
for (RPoint p : points) {