From 547221b3da10ec5eb189321cd775ddc55802325c Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Mon, 20 Apr 2015 16:40:20 -0700 Subject: [PATCH] clean up comments and warnings --- .../libraries/dxf/src/processing/dxf/RawDXF.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/java/libraries/dxf/src/processing/dxf/RawDXF.java b/java/libraries/dxf/src/processing/dxf/RawDXF.java index 1dbb6fab4..aec91ce89 100644 --- a/java/libraries/dxf/src/processing/dxf/RawDXF.java +++ b/java/libraries/dxf/src/processing/dxf/RawDXF.java @@ -129,7 +129,7 @@ public class RawDXF extends PGraphics { if (!file.isAbsolute()) file = null; } if (file == null) { - throw new RuntimeException("PGraphicsPDF requires an absolute path " + + throw new RuntimeException("DXF export requires an absolute path " + "for the location of the output file."); } } @@ -161,16 +161,16 @@ public class RawDXF extends PGraphics { return false; // just in case someone wants to use this on its own } - + public boolean is2D() { return false; } - + public boolean is3D() { return true; } - + // .............................................................. @@ -232,7 +232,7 @@ public class RawDXF extends PGraphics { */ public void write(String cmd, float val) { writer.println(cmd); - // don't format, will cause trouble on systems that aren't en-us + // Don't number format, will cause trouble on systems that aren't en-US // http://dev.processing.org/bugs/show_bug.cgi?id=495 writer.println(val); } @@ -302,8 +302,8 @@ public class RawDXF extends PGraphics { write("22", vertices[2][Y]); write("32", vertices[2][Z]); - // without adding EPSILON, rhino kinda freaks out - // a face is actually a quad, not a triangle, + // Without adding EPSILON, Rhino kinda freaks out. + // A face is actually a quad, not a triangle, // so instead kinda fudging the final point here. write("13", vertices[2][X] + EPSILON); write("23", vertices[2][Y] + EPSILON); @@ -329,7 +329,7 @@ public class RawDXF extends PGraphics { } if ((shape == POLYGON) && fill) { - throw new RuntimeException("RawDXF only supports non-filled shapes."); + throw new RuntimeException("DXF Export only supports non-filled shapes."); } vertexCount = 0;