move ExplititEuler cloth solver to its own file, so it can be replaced by PDB, implicit euler etc
add wireframe toggle ('w' key)
add --paused command-line option to start simulation in paused mode
render cloth using drawPoints method
This commit is contained in:
15
Demos3/CpuDemos/deformable/ExplicitEuler.h
Normal file
15
Demos3/CpuDemos/deformable/ExplicitEuler.h
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
#ifndef EXPLICIT_EULER_H
|
||||
#define EXPLICIT_EULER_H
|
||||
|
||||
struct ExplicitEuler
|
||||
{
|
||||
static void computeForces(struct CpuSoftClothDemoInternalData* data, char* vtx, int vertexStride, float dt);
|
||||
|
||||
static void integrateExplicitEuler(struct CpuSoftClothDemoInternalData* data, char* vtx, int vertexStride,float dt);
|
||||
|
||||
static void solveConstraints(struct CpuSoftClothDemoInternalData* data, char* vtx, int vertexStride,float dt);
|
||||
|
||||
};
|
||||
|
||||
#endif //EXPLICIT_EULER_H
|
||||
Reference in New Issue
Block a user