schrum2 / MM-NEATv2

MM-NEAT version 2.0 is no longer supported. Please get MM-NEAT 3+ from https://github.com/schrum2/MM-NEAT
Other
11 stars 5 forks source link

Generalize Cube drawing code into a ThreeDimensionalUtil class #407

Closed schrum2 closed 7 years ago

schrum2 commented 7 years ago

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.

schrum2 commented 7 years ago

Move code out of Construct3DObject until it no longer exists. Do not keep code for the JPanel display, as that is not needed any more.