import java.util.*; public class PFeature { //lame java generics; need to use objects instead of primitive types // public ArrayList> ptsX; // public ArrayList> ptsY; public float[] tmpx; public float[] tmpy; int npts; boolean closed; PFeature(int n) { tmpx = new float[n]; tmpy = new float[n]; npts = n; closed = true; } void draw(PGraphics g) { // println("Draw called!!"); beginShape(); // System.out.printf("%d points\n", (closed ? npts+1:npts)); for(int i=0; i