The day i asked for help and made a cube.

Got to school a proper time today as I was hoping to finish the first assignment and also ask for help with some things I was unsure about. Thanks to asking around I was able to fix the issues I was having with my traversal functions. The issue was solved by moving the node struct to the top of the class rather than the end. This was because the function called for a node to be used as an argument which it couldn’t do before the struct was declared. I also changed the function to use itself as the recursive function rather than having another recursive function within itself. The function itself works pretty much the same way however except that it takes a pointer to a std::vector as an argument rather than creating it on its own. I could have used my own linked list for this but I’m not sure about it yet. It’s a simple replacement in any case if I should decide to do so.

A lot of the time today went towards tweaking some of the specific cases in the add and remove functions, nothing worth going into more detail about, some of the segments where a pointer to a node was copied from another pointer would not copy the correct variables but it was all because of forgetting to set them earlier.
When I let someone else have a look at my code they pointed out that I was using the template at the start of every function as well as the class declaration which they informed me there was no reason for. Thanks to that I was able to remove them all and remove the

after creating a new node. So much for thinking I knew about templates I guess.

During the afternoon we continued working with creating triangles from vertices using DirectX. We used the triangles to form rectangles which we placed in the shape of a cube. I feel like the lectures about how an object is rendered could have benefitted from proper slides as I’m still not sure about the pipeline of creating an object. The tree main parts included the object itself, a shader and ‘input’? but isn’t the object the input? And is the object the first or the last in the pipeline? That being said, I felt like I was having serious issues focusing during the class and found myself having zoned out several times and having missed what was said the last couples of sentences completely. I wish there had been some charts on how it worked.
For this weekend I’ll finish the first part of the assignment so I can get started properly on the second part which many seem to consider the harder of the two, I may have to finish it parallel to the third assignment.