Skip to content

Latest commit

 

History

History

examples_oldgl_glfw

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

DelFEM2 C++ Examples using Legacy OpenGL

These demos use OpenGL version 2.1 and GLSL shaer version 1.2 which are depricated in many environment. But still it is convenient to use legacy functions such as glBegin(), glEnd(). We will eventually consider porting these demo into newer OpenGL >= 3.3 in the examples_newgl_glfw folder.

How To Build

These demos depend on the GLFW library to open an OpenGL window. If you haven't install glfw in your computer, please read following Document to set up GLFW.

With glfw installed, you can build the demos simply by

mkdir build && cd build
cmake ..
cmake --build .

Simple Example without DelFEM2

Basic Demo

129_CubeVoxelEdit

134_Primitives

137_VoxleLineIntersection

Dynamic Triangle

CAD

Simulation (FEM,FDM,PBD,BEM,SPH,Arap)

621_Fem2

622_FemRodHairStatic

622_FemRodHairDynamic

625_Fem2MasterSlave