Nearly Geodesic Sphere – Mesh Creation


This post will let me store some useful code and possibly share it with others. I had originally found this wonderful explanation on stack overflow on how to generate triangles in a super simple manner for a nice sphere mesh. The idea is to take an octohedron, or icosahedron, and Continue Reading →

Inertia Tensor – Capsule


A capsule is defined by two hemispheres and a cylinder. Capsules are pretty useful geometry for collision detection since they are easily defined mathematically (implicitly defined). This means that minimal information can be stored in memory to represent a capsule in 3D space. Given a radius value and position information Continue Reading →

Memory Management

Any competent software engineer will have spent significant time working with low level memory management. Even though the operating system code is written for will often provide some kind of allocation and deallocation mechanism, application specific assumptions can be made to increase memory related performance. For example certain hardware doesn’t Continue Reading →

What is there to Hate about References?

I find most usage of references annoying cruft. Often the arguments I see or hear that are “pro-reference” make the same lame points that most of the internet makes: Pointers are dangerous Pointers are ambiguous and confusing NULL pointers lead to undefined behavior and crashes Just google “pointers and references” Continue Reading →