graphics: introduced a method to create torus mesh.
graphics: code formatting.