Overview
This porject is for learning how to implement Finite Element Method (FEM) for deformation simulation in C language. Let's fill in the code at TODO.
Command Key - when main window is active
q:quit
r:rotate object
n:select node(left:fixed,middle:input,right:free)
s:calculate inverse stiffness matrix
f:fem simulation mode
i:clear deformation
c:clear node settings
- glut,OpenGL
- FEM Data : ../data/sphere.fem
$ gcc main.c GLTool.c MathTool.c Mesh.c SolidFEM.c -o test -lglut -lGL -lGLU
$ ./test ../data/sphere.fem