This is a simulation library for computer graphics which contains following contents: 1.Basic Tetrahedron Hexahedron FEA, Different Material Model including Linear, StVK, Neohookean, spline-design. 2.Basic Peridynamic FEA, Different Material Model including Linear, anisotropic nonlinear basis design. 3.Different Kinds of Time Integration Method, including Explicit Euler, Runge-Kunta, implicit newton-raphson, implicit quasi-newton, gradient descent. 4.Basic Position Based Dynamics
C++ documents is generated by doxygen.
cd PyPhysLeo/doc/source doxygen PhysLeo.doxygen
this will create the C++ API for PhysLeo lib in PyPhysLeo/doc/build/doxygen/html online document, please refer to
Python documents is generated by sphinx-doc.
cd PyPhysLeo/doc/source make
this will create the Python API for PyPhysLeo module in PyPhysLeo/doc/build/html
Cuda (Accelleration on Nvidia's Graphics Card) Qt (GUI and Interaction) OpenGL GLEW(Rendering) pybind11 (Python Binding) Eigen (Linear Algebra)
Python3 (recommend install ananconda3, add it to your system path) QT CMake
Theoretically speaking, this project can be compiled and used in any platform as long as you have Nvidia's card, cuda and all other prerequisites. However it is only tested on Windows and Linux with x64 architecture.
cd PyPhysLeo (root directory) mkdir build cd build cmake .. make make install
Then you can use PyPhysLeo by import PyPhysLeo in your python code.
binding codes are under "PyBind", name in "py_xx.cpp"
Examples of how to use PyPhysLeo, please refer to the test files in "PyTest". test files are all in format "test_xx.py". Run "pytest" at subdirectory "PyTest" to check the correctness of the module
for C++ programmer, please refer to QtApplication subproject. for python programmer, please refer to PyQtApplication subproject. It relies on PyQt5 PyOpenGL, be sure you already have these modules. All you need to do is to create your own scene graph. Now I only create the Stvk Bunny Demo, I will put other demos on as soon as I can.
Feel free to ask me about any problems about this project including compilation, bugs or others. My email is email@example.com. But the best way is still to set up an issue on this project first. Finally, give me a star if you like this project.