893894895896897898899900901902903
PGraphicsPDF pdf = (PGraphicsPDF) g; // Get the renderer for (int i = 0; i < this.getList().size(); i++) { SlicePlane curSlice = this.getList().get(i); curSlice.render(g); pdf.nextPage(); } } public void saveToPDF(PGraphics g, boolean translate) {
907908909910911912913914915916917
g.pushMatrix(); g.translate(SETTINGS_SKETCH.chair_width, 20); SlicePlane curSlice = this.getList().get(i); curSlice.render(g); g.popMatrix(); pdf.nextPage(); } } public void scale(float scale, Vec3D centre) {