Skip to content

Commit 547221b

Browse files
committed
clean up comments and warnings
1 parent 54c4902 commit 547221b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

java/libraries/dxf/src/processing/dxf/RawDXF.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public void setPath(String path) {
129129
if (!file.isAbsolute()) file = null;
130130
}
131131
if (file == null) {
132-
throw new RuntimeException("PGraphicsPDF requires an absolute path " +
132+
throw new RuntimeException("DXF export requires an absolute path " +
133133
"for the location of the output file.");
134134
}
135135
}
@@ -161,16 +161,16 @@ public boolean displayable() {
161161
return false; // just in case someone wants to use this on its own
162162
}
163163

164-
164+
165165
public boolean is2D() {
166166
return false;
167167
}
168168

169-
169+
170170
public boolean is3D() {
171171
return true;
172172
}
173-
173+
174174

175175
// ..............................................................
176176

@@ -232,7 +232,7 @@ private void writeFooter() {
232232
*/
233233
public void write(String cmd, float val) {
234234
writer.println(cmd);
235-
// don't format, will cause trouble on systems that aren't en-us
235+
// Don't number format, will cause trouble on systems that aren't en-US
236236
// http://dev.processing.org/bugs/show_bug.cgi?id=495
237237
writer.println(val);
238238
}
@@ -302,8 +302,8 @@ protected void writeTriangle() {
302302
write("22", vertices[2][Y]);
303303
write("32", vertices[2][Z]);
304304

305-
// without adding EPSILON, rhino kinda freaks out
306-
// a face is actually a quad, not a triangle,
305+
// Without adding EPSILON, Rhino kinda freaks out.
306+
// A face is actually a quad, not a triangle,
307307
// so instead kinda fudging the final point here.
308308
write("13", vertices[2][X] + EPSILON);
309309
write("23", vertices[2][Y] + EPSILON);
@@ -329,7 +329,7 @@ public void beginShape(int kind) {
329329
}
330330

331331
if ((shape == POLYGON) && fill) {
332-
throw new RuntimeException("RawDXF only supports non-filled shapes.");
332+
throw new RuntimeException("DXF Export only supports non-filled shapes.");
333333
}
334334

335335
vertexCount = 0;

0 commit comments

Comments
 (0)