Skip to content

Commit

Permalink
readded toString to MeshQuad
Browse files Browse the repository at this point in the history
  • Loading branch information
FalsePattern committed Dec 1, 2023
1 parent 8d15efd commit 55d7b71
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/makamys/neodymium/renderer/MeshQuad.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ public static int getStride() {
+ 4 // C (int)
;
}

@Override
public String toString() {
return String.format(Locale.ENGLISH, "%s[(%.1f, %.1f, %.1f), (%.1f, %.1f, %.1f), (%.1f, %.1f, %.1f), (%.1f, %.1f, %.1f)]", deleted ? "XXX " : "", xs[0], ys[0], zs[0], xs[1], ys[1], zs[1], xs[2], ys[2], zs[2], xs[3], ys[3], zs[3]);
}

public static boolean isValid(MeshQuad q) {
return q != null && !q.deleted;
Expand Down

0 comments on commit 55d7b71

Please sign in to comment.