Student project of Geometric Algebra, using OpenGL3 and C3ga.
The goal of the project is to make interpolation between two spheres.
OpenGL3
GLEW
Eigen3
C3GA
Needs dependencies to work. In the root project :
cd cmake-build-debug
cmake ..
makeIn cmake-build-debug
./interpolationCurrently, there is only a run as default.
purple sphere is the initial sphere
yellow sphere is the goal sphere
red sphere is the interpolation sphere
If you want change parameter, you could update Main.cpp at these lines :
/* Set the sphere 1 */
glm::vec<3, GLfloat> center1 = sphere.getCenter();
sphere.translator(center1.x - 0.8, center1.y - 0.7, center1.z);
sphere2.dilator(1.0);
/* Set the sphere 2 */
glm::vec<3, GLfloat> center2 = sphere2.getCenter();
sphere2.translator(center2.x + 0.5, center2.y + 0.6, center2.z + 0.5);
sphere2.dilator(1.5);- Jérémie LE BASTARD
- [1] H. Hadfield & J. Lasenby : Direct Linear Interpolation of Geometric Objects in Conformal Geometric Algebra
- [2] Doran, C.: Circle and sphere blending with conformal geometric algebra. (2003)
- [3] Jean-Sébastien Samson : Inteprolation 3D