Loading src/main/java/Graph/readFile.java +20 −2 Original line number Diff line number Diff line package Graph; import java.io.File; import java.io.*; import java.util.*; import java.io.FileNotFoundException; import java.util.Random; public class readFile { Loading Loading @@ -130,4 +130,22 @@ public class readFile { } return facesWithTexture; } public static void randFileGenerator(String filename) throws IOException { Random random = new Random(); try (BufferedWriter writer = new BufferedWriter(new FileWriter(filename))) { for (int i = 0; i < 15000; i++) { String face = makeLine(random); writer.write(face); writer.newLine(); } } } private static String makeLine(Random random) { return String.format("[%f,%f,%f] [%f,%f,%f] [%f,%f,%f]", random.nextFloat() * 30, random.nextFloat() * 30, random.nextFloat() * 30, random.nextFloat() * 30, random.nextFloat() * 30, random.nextFloat() * 30, random.nextFloat() * 30, random.nextFloat() * 30, random.nextFloat() * 30); } } No newline at end of file src/main/java/org/example/newmat/GraphicsAndWindowsTest.java +1 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ public class GraphicsAndWindowsTest extends Application { }; parameters = getParameters().getRaw().toArray(new String[getParameters().getRaw().size()]); //readFile.randFileGenerator("testfile2.txt"); readFile processInput = new readFile(); processInput.parseCommand(parameters); processInput.makeVertexHash(processInput.path[0]); Loading target/classes/Graph/readFile.class +1.09 KiB (7.01 KiB) File changed.No diff preview for this file type. View original file View changed file target/classes/org/example/newmat/GraphicsAndWindowsTest$1.class (2.79 KiB) File changed.No diff preview for this file type. View original file View changed file target/classes/org/example/newmat/GraphicsAndWindowsTest$2.class (830 B) File changed.No diff preview for this file type. View original file View changed file Loading
src/main/java/Graph/readFile.java +20 −2 Original line number Diff line number Diff line package Graph; import java.io.File; import java.io.*; import java.util.*; import java.io.FileNotFoundException; import java.util.Random; public class readFile { Loading Loading @@ -130,4 +130,22 @@ public class readFile { } return facesWithTexture; } public static void randFileGenerator(String filename) throws IOException { Random random = new Random(); try (BufferedWriter writer = new BufferedWriter(new FileWriter(filename))) { for (int i = 0; i < 15000; i++) { String face = makeLine(random); writer.write(face); writer.newLine(); } } } private static String makeLine(Random random) { return String.format("[%f,%f,%f] [%f,%f,%f] [%f,%f,%f]", random.nextFloat() * 30, random.nextFloat() * 30, random.nextFloat() * 30, random.nextFloat() * 30, random.nextFloat() * 30, random.nextFloat() * 30, random.nextFloat() * 30, random.nextFloat() * 30, random.nextFloat() * 30); } } No newline at end of file
src/main/java/org/example/newmat/GraphicsAndWindowsTest.java +1 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ public class GraphicsAndWindowsTest extends Application { }; parameters = getParameters().getRaw().toArray(new String[getParameters().getRaw().size()]); //readFile.randFileGenerator("testfile2.txt"); readFile processInput = new readFile(); processInput.parseCommand(parameters); processInput.makeVertexHash(processInput.path[0]); Loading
target/classes/Graph/readFile.class +1.09 KiB (7.01 KiB) File changed.No diff preview for this file type. View original file View changed file
target/classes/org/example/newmat/GraphicsAndWindowsTest$1.class (2.79 KiB) File changed.No diff preview for this file type. View original file View changed file
target/classes/org/example/newmat/GraphicsAndWindowsTest$2.class (830 B) File changed.No diff preview for this file type. View original file View changed file