// Demo3DLinesForPShape -- demo coordinates used for a 3D PShape's vertex() // calls using lines, D. Parson, 9/30/2021 void setup() { size(1000, 900, P3D); } void draw() { push(); background(255); stroke(0); strokeWeight(6); // ortho(); translate(width/4, height*.76, 0); // TOP SIDE: line(-100, -100, -100, 100, -100, -100); // L-R, top, back line(-100, -100, -100, -100, -100, 100); // L, top, front-to-back line(100, -100, -100, 100, -100, 100); // R, top, front-to-back line(-100, -100, 100, 100, -100, 100); // L-R, top, front //// BOTTOM SIDE line(-100, 100, -100, 100, 100, -100); // L-R, bottom, back line(-100, 100, 100, -100, 100, -100); // L, bottom, front-to-back line(100, 100, -100, 100, 100, 100); // R, bottom, front-to-back line(-100, 100, 100, 100, 100, 100); // L-R, bottom, front //// LEFT SIDE line(-100, -100, 100, -100, 100, 100); line(-100, -100, -100, -100, 100, -100); //// RIGHT SIDE line(100, -100, 100, 100, 100, 100); line(100, -100, -100, 100, 100, -100); pop(); }