Loading src/main/java/Graph/readFile.java +8 −1 Original line number Diff line number Diff line Loading @@ -235,7 +235,14 @@ public class readFile { vertices[random.nextInt(vertices.length / 3) * 3], vertices[random.nextInt(vertices.length / 3) * 3], vertices[random.nextInt(vertices.length / 3) * 3], vertices[random.nextInt(vertices.length / 3) * 3], vertices[random.nextInt(vertices.length / 3) * 3], vertices[random.nextInt(vertices.length / 3) * 3]); } /** * Generates a specified number of random vertices within a 3D space, each represented by x, y, and z coordinates. * The coordinates are generated within a bounded range [0, 30) and stored in a global float array. This method * fills the {@code vertices} array with float values where every set of three floats represents the coordinates * of a single vertex. * * @param numVertices The number of vertices to generate. This determines the size of the {@code vertices} array. */ public static void generateRandomVertices(int numVertices) { float range = 30; Random random = new Random(); Loading Loading
src/main/java/Graph/readFile.java +8 −1 Original line number Diff line number Diff line Loading @@ -235,7 +235,14 @@ public class readFile { vertices[random.nextInt(vertices.length / 3) * 3], vertices[random.nextInt(vertices.length / 3) * 3], vertices[random.nextInt(vertices.length / 3) * 3], vertices[random.nextInt(vertices.length / 3) * 3], vertices[random.nextInt(vertices.length / 3) * 3], vertices[random.nextInt(vertices.length / 3) * 3]); } /** * Generates a specified number of random vertices within a 3D space, each represented by x, y, and z coordinates. * The coordinates are generated within a bounded range [0, 30) and stored in a global float array. This method * fills the {@code vertices} array with float values where every set of three floats represents the coordinates * of a single vertex. * * @param numVertices The number of vertices to generate. This determines the size of the {@code vertices} array. */ public static void generateRandomVertices(int numVertices) { float range = 30; Random random = new Random(); Loading