Welcome to the official site for Geometric Tools, a collection of source code for computing in the fields of mathematics, graphics, image analysis and physics. The engine is written in C++ 11 and, as such, has portable access to standard constructs for multithreading programming on cores. The engine also supports high-performance computing using general purpose GPU programming (GPGPU). SIMD code is also available using Intel Streaming SIMD Extensions (SSE). Portions of the code are described in various books as well as in documents available at this site. The source code is freely downloadable, covered by the Boost License. The schedule for releases and related information is listed below.

If you use Linux and OpenGL, you need OpenGL 4.5 or later. I use the NVIDIA proprietary drivers rather than the Nouveau Open Source drivers in order to satisfy this constraint. Any attempt to run the sample applications without the specified version will fail gracefully with the console-window output: OpenGL 4.5 is required.

Support for the Macintosh was dropped some time ago because I do not have time to write an Objective C and/or Swift wrapper around the C++ code. I also do not have time to write an application layer for sample applications provided in the distributions. Finally, my Mac Mini was from 2011, and Apple does not provide OS X updates for it. The new Macintosh hardware is quite expensive and my budget does not currently allow for it.


Geometric Tools Engine 3.28. The GTEngine 3.x track is now closed to new features, but bugs will be fixed as they are reported. The end of lifecycle for the 3.x track is December 31, 2019, at which time the final version will be available online but no longer supported. The replacement is GTEngine 4.x.

Released on August 29, 2019.
Microsoft Windows 10 with Microsoft Visual Studio 2013, 2015, 2017 and 2019; DirectX 11.1 or OpenGL 4.5.
Ubuntu 18.04, gcc 7.4.0, NVIDIA graphics driver 390.116, OpenGL 4.6.0.


Geometric Tools Engine 4.1. This version is a transition from the Geometric Tools Engine version 3.x source code to the planned Geometric Tools Library code. The single library project for GTEngine has been replaced by separate libraries. The mathematics code is in a header-only library (GTMathematics). A mathematics library with GPU-based implementations is provided (GTMathematicsGPU). The CPU-based common graphics engine code is in its own library (GTGraphics). DirectX 11 wrappers are provided for graphics (GTGraphicsDX11) and applications (GTApplicationsDX11). OpenGL 4.5 wrappers are provided for graphics (GTGraphicsGL45) and applications (GTApplicationsGL45). The file and folder organization has changed, and the Gte file prefix has been removed because of the style of header-file includes in the source code. Microsoft Visual Studio 2013 Update 5 reached the end of its product lifecycle on April 9, 2019 and is not supported by GTEngine 4. Some of Wild Magic 5 has still not been ported to GTEngine, which I will remedy with GTEngine 4.

Released on August 29, 2019.
Microsoft Windows 10 with Microsoft Visual Studio 2015, 2017 and 2019; DirectX 11.1 or OpenGL 4.5.
Ubuntu 18.04, gcc 7.4.0, NVIDIA graphics driver 390.116, OpenGL 4.6.0.


Robust and Error-Free Geometric Computing. I am writing a book on how to use a mixture of rational and symbolic arithmetic to obtain robust or error-free results when implementing geometric algorithms. The framework builds on top of the already existing arbitrary-precision arithmetic that my source code provides. The manuscript is due November 2019 and I expect the book to appear in print in the first half of 2020. The book will be accompanied by the Geometric Tools Library.


Geometric Tools Library 1.0. The motivation for Geometric Tools was my graduate studies in medical image processing; it was then named MAGIC Software (My Alternate Graphics and Image Code). When I entered the 3D video game industry, I spent less time on image code and more time on graphics, physics and mathematics code. Much of the code was a result of helping people who posted problems to the Usenet forum comp.graphics.algorithms. Technical support questions over recent years have made it clear to me that the mathematics and geometry code is what people use the most, so I will focus on those topics now.

The Geometric Tools Library (GTL) will be a reworking of the mathematics and geometry code in GTEngine followed by adding new code as time permits. I am attempting to streamline the code, to provide consistent naming and interfaces, and to extend the capabilities. Some of the GTEngine geometry code already contains multithreading, especially useful when the numeric type involves rational arithmetic and arbitrary-precision arithmetic, and I plan to include multithreading in more algorithms. Separate code will be available for GPGPU-based implementations using HLSL, GLSL and CUDA and for SIMD-based implementations using Intel's SSE or AVX. I will be adding a framework for a mixture of rational and symbolic computing, which is described in my forthcoming book Robust and Error-Free Geometric Computing.

The mathematics and geometry code base has associated documentation and a unit-test suite. Code for graphics and applications exists only for samples that illustrate the GTL algorithms. These will be contained in separate libraries that are provided as-is without unit-test support. The GTL source code will be freely downloadable and subject to the Boost License.

Release is scheduled for the first half of 2020 (when the aforementioned book ships).
Microsoft Windows 10 with Microsoft Visual Studio 2017 and 2019; DirectX 11 or OpenGL 4.5.
Ubuntu 18.04, gcc 7.4.0, NVIDIA graphics driver 390.116, OpenGL 4.6.0.


Special thanks to Justin "Satriani" Hunt for the website design and support.