An open API service indexing awesome lists of open source software.

https://github.com/kingnobro/cloth-simulation

Naive Cloth Sewing based on OpenGL
https://github.com/kingnobro/cloth-simulation

simulation

Last synced: 5 months ago
JSON representation

Naive Cloth Sewing based on OpenGL

Awesome Lists containing this project

README

          

# Naive-Cloth-Sewing

### Cloth Sewing
[![HxqTVf.gif](https://s4.ax1x.com/2022/02/22/HxqTVf.gif)](https://imgtu.com/i/HxqTVf)
[![T7HWdO.png](https://s4.ax1x.com/2022/01/03/T7HWdO.png)](https://imgtu.com/i/T7HWdO)
[![T7HReK.png](https://s4.ax1x.com/2022/01/03/T7HReK.png)](https://imgtu.com/i/T7HReK)

### Triangulation

[![T7HgL6.png](https://s4.ax1x.com/2022/01/03/T7HgL6.png)](https://imgtu.com/i/T7HgL6)

### Implementation

1. Cloth Simulation based on Mass-Spring System
2. High Efficiency Collision Detection
3. Constrained Delaunay Triangulation
4. Parsing Cloth Data from `.dxf` and Sewing them together.

### Build

You need to make following modifications in Visual Studio,

- INCLUDE
- LIB
- Additional Dependencies: `glfw3.lib`, `assimp-vc142-mt.lib`
- Preprocessor Definitions: `_CRT_SECURE_NO_WARNINGS`

### Future Work

- Cloth Self Collision
- Multilayer Cloth Simulation

### Reference

1. [Cloth Simulation](https://github.com/xxMeow/ClothSimulation)
2. [CDT: Constrained Delaunay Triangulation](https://github.com/artem-ogre/CDT)
3. [Efficient Cloth Model and Collision Detection for Dressing Virtual People](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.103.4540&rep=rep1&type=pdf)
4. [dxflib](https://qcad.org/en/90-dxflib)
5. [assimp](https://www.assimp.org/)