clean up comments and warnings

This commit is contained in:
Ben Fry
2015-04-20 16:40:20 -07:00
parent 54c4902aa1
commit 547221b3da

View File

@@ -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;