Eventually, that Construct3DObject class will no longer exist, but important functionality form it will be moved piece by piece into a util class. Here are some methods we need.
Given a point, a side length, and a color, return a list of Triangles that describe a cube.
Given a Graphics2D object and a list of Triangles, draw/render the 3D shapes in the graphics instance.
Given a list of Vertex center points, a side length, and a color, return a single list of triangles describing several cubes to be drawn at the various center points.
You will likely think of more as you make more progress.
Eventually, that Construct3DObject class will no longer exist, but important functionality form it will be moved piece by piece into a util class. Here are some methods we need.
Given a point, a side length, and a color, return a list of Triangles that describe a cube.
Given a Graphics2D object and a list of Triangles, draw/render the 3D shapes in the graphics instance.
Given a list of Vertex center points, a side length, and a color, return a single list of triangles describing several cubes to be drawn at the various center points.
You will likely think of more as you make more progress.