class Path { ArrayList<PVector> points; float radius = 20; boolean dim; Path() { this.points = new ArrayList<PVector>(); } void addPoint(float x, float y, float z) { PVector point = new PVector(x, y, z); this.points.add(point); } //------------------------------------------------------------------------------------- // Draw the path void display() { stroke(120,120,120,50); strokeWeight(radius*2); noFill(); beginShape(); for (PVector v : points) { vertex(v.x, v.y, v.z); } endShape(); stroke(255); strokeWeight(1); noFill(); beginShape(); for (PVector v : points) { vertex(v.x, v.y, v.z); } endShape(); } } Update