From 0fa977243a06dfe656f9798110ccaa80bb745dfb Mon Sep 17 00:00:00 2001 From: FalsePattern Date: Fri, 1 Dec 2023 13:02:43 +0100 Subject: readded toString to MeshQuad --- src/main/java/makamys/neodymium/renderer/MeshQuad.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/main/java/makamys/neodymium/renderer/MeshQuad.java b/src/main/java/makamys/neodymium/renderer/MeshQuad.java index 94b981c..9c12472 100644 --- a/src/main/java/makamys/neodymium/renderer/MeshQuad.java +++ b/src/main/java/makamys/neodymium/renderer/MeshQuad.java @@ -131,6 +131,11 @@ public class MeshQuad { + 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; -- cgit