gptoolbox is a comprehensive MATLAB toolbox for geometry processing, optimization, and image processing. It provides a wide range of utility functions for working with triangle and tetrahedral meshes, making it useful for tasks in computer graphics, computational geometry, and 3D modeling. The toolbox includes wrappers for external software such as TetGen, Triangle, QSlim, and meshfix, as well as functions for mesh smoothing, cleanup, deformation, and parameterization. It also implements discrete differential geometry operators, geodesic distance computations, and constructive solid geometry operations. Beyond geometry, gptoolbox includes features for quadratic programming, image colorization, and dithering. Most of the functions are pure MATLAB code, requiring only that the toolbox be added to the MATLAB path, while some specialized features depend on external libraries and compiled mex files.
Features
- Mesh operations including smoothing, cleanup, and parameterization
- Wrappers for TetGen, Triangle, QSlim, and meshfix
- Discrete differential geometry operators (cotangent Laplacian, gradient, divergence)
- Mesh deformation methods such as ARAP and moving least squares
- Image processing functions including colorization and dithering
- Input/output support for multiple mesh file formats (.obj, .stl, .ply, etc.)