A Java program to render 3D objects which are mathematically defined. Makes it easy to create a new object and display it with a few lines of code.
The following code snippet results in a raytraced sphere with a cube cut out of the center.
Renderer renderer = new Renderer(new MultiObject()
.add_object(new Sphere(origin, 1.5f), true)
.add_object(new Box(origin, 4f, 1.5f, 1.5f), false));
renderer.display();
You can draw many objects. The following is a cube with a sphere cut out of the center.
You can even draw three dimensional Mandelbrot fractals.