Initial tests for TriangleGenerator.
Changed TriangleGenerator to work in floating-point time.