You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
530 B
32 lines
530 B
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
using std::vector;
|
|
|
|
struct Vertex;
|
|
struct Edge;
|
|
struct Triangle;
|
|
struct Face;
|
|
struct Tetrahedron;
|
|
|
|
class Mesh;
|
|
|
|
class SoftBody {
|
|
public:
|
|
explicit SoftBody(Mesh* mesh, float compliance);
|
|
uint32_t indexCount = 0;
|
|
uint32_t partitionCount = 0;
|
|
float compliance;
|
|
|
|
vector<Vertex> vertices;
|
|
vector<Edge> edges;
|
|
vector<Triangle> triangles;
|
|
vector<Face> faces;
|
|
vector<Tetrahedron> tetrahedra;
|
|
|
|
SoftBody& operator =(const SoftBody& other) = delete;
|
|
private:
|
|
}; |