Reestructured folders
This commit is contained in:
		| @@ -19,8 +19,8 @@ | |||||||
| #ifndef B3_CLOTH_CONTACT_MANAGER_H | #ifndef B3_CLOTH_CONTACT_MANAGER_H | ||||||
| #define B3_CLOTH_CONTACT_MANAGER_H | #define B3_CLOTH_CONTACT_MANAGER_H | ||||||
|  |  | ||||||
| #include <bounce/cloth/cloth_particle_body_contact.h> | #include <bounce/cloth/contacts/cloth_particle_body_contact.h> | ||||||
| #include <bounce/cloth/cloth_particle_triangle_contact.h> | #include <bounce/cloth/contacts/cloth_particle_triangle_contact.h> | ||||||
| #include <bounce/collision/broad_phase.h> | #include <bounce/collision/broad_phase.h> | ||||||
| #include <bounce/common/memory/block_pool.h> | #include <bounce/common/memory/block_pool.h> | ||||||
| #include <bounce/common/template/list.h> | #include <bounce/common/template/list.h> | ||||||
|   | |||||||
| @@ -20,7 +20,7 @@ | |||||||
| #define B3_DIAG_MAT_33_H | #define B3_DIAG_MAT_33_H | ||||||
| 
 | 
 | ||||||
| #include <bounce/common/math/mat33.h> | #include <bounce/common/math/mat33.h> | ||||||
| #include <bounce/cloth/dense_vec3.h> | #include <bounce/sparse/dense_vec3.h> | ||||||
| 
 | 
 | ||||||
| // Diagonal matrix storing only the diagonal elements of the 
 | // Diagonal matrix storing only the diagonal elements of the 
 | ||||||
| // original matrix.
 | // original matrix.
 | ||||||
| @@ -20,8 +20,8 @@ | |||||||
| #define B3_SPARSE_MAT_33_H | #define B3_SPARSE_MAT_33_H | ||||||
| 
 | 
 | ||||||
| #include <bounce/common/math/mat33.h> | #include <bounce/common/math/mat33.h> | ||||||
| #include <bounce/cloth/diag_mat33.h> | #include <bounce/sparse/diag_mat33.h> | ||||||
| #include <bounce/cloth/dense_vec3.h> | #include <bounce/sparse/dense_vec3.h> | ||||||
| 
 | 
 | ||||||
| // An element in a sparse matrix.
 | // An element in a sparse matrix.
 | ||||||
| struct b3RowValue | struct b3RowValue | ||||||
| @@ -19,7 +19,7 @@ | |||||||
| #ifndef B3_SPARSE_MAT_33_VIEW_H | #ifndef B3_SPARSE_MAT_33_VIEW_H | ||||||
| #define B3_SPARSE_MAT_33_VIEW_H | #define B3_SPARSE_MAT_33_VIEW_H | ||||||
| 
 | 
 | ||||||
| #include <bounce/cloth/sparse_mat33.h> | #include <bounce/sparse/sparse_mat33.h> | ||||||
| 
 | 
 | ||||||
| struct b3ArrayRowValue | struct b3ArrayRowValue | ||||||
| { | { | ||||||
| @@ -19,7 +19,7 @@ | |||||||
| #ifndef B3_SPARSE_SYM_MAT_33_H | #ifndef B3_SPARSE_SYM_MAT_33_H | ||||||
| #define B3_SPARSE_SYM_MAT_33_H | #define B3_SPARSE_SYM_MAT_33_H | ||||||
| 
 | 
 | ||||||
| #include <bounce/cloth/sparse_mat33.h> | #include <bounce/sparse/sparse_mat33.h> | ||||||
| 
 | 
 | ||||||
| // A sparse symmetric matrix.
 | // A sparse symmetric matrix.
 | ||||||
| // Each row is a list of non-zero elements in the row.
 | // Each row is a list of non-zero elements in the row.
 | ||||||
| @@ -19,8 +19,8 @@ | |||||||
| #ifndef B3_SPARSE_SYM_MAT_33_VIEW_H | #ifndef B3_SPARSE_SYM_MAT_33_VIEW_H | ||||||
| #define B3_SPARSE_SYM_MAT_33_VIEW_H | #define B3_SPARSE_SYM_MAT_33_VIEW_H | ||||||
| 
 | 
 | ||||||
| #include <bounce/cloth/sparse_mat33_view.h> | #include <bounce/sparse/sparse_mat33_view.h> | ||||||
| #include <bounce/cloth/sparse_sym_mat33.h> | #include <bounce/sparse/sparse_sym_mat33.h> | ||||||
| 
 | 
 | ||||||
| // A read-only sparse symmetric matrix.
 | // A read-only sparse symmetric matrix.
 | ||||||
| struct b3SparseSymMat33View | struct b3SparseSymMat33View | ||||||
| @@ -19,10 +19,10 @@ | |||||||
| #include <bounce/cloth/cloth_force_solver.h> | #include <bounce/cloth/cloth_force_solver.h> | ||||||
| #include <bounce/cloth/particle.h> | #include <bounce/cloth/particle.h> | ||||||
| #include <bounce/cloth/force.h> | #include <bounce/cloth/force.h> | ||||||
| #include <bounce/cloth/dense_vec3.h> | #include <bounce/sparse/dense_vec3.h> | ||||||
| #include <bounce/cloth/diag_mat33.h> | #include <bounce/sparse/diag_mat33.h> | ||||||
| #include <bounce/cloth/sparse_sym_mat33.h> | #include <bounce/sparse/sparse_sym_mat33.h> | ||||||
| #include <bounce/cloth/sparse_sym_mat33_view.h> | #include <bounce/sparse/sparse_sym_mat33_view.h> | ||||||
| #include <bounce/common/memory/stack_allocator.h> | #include <bounce/common/memory/stack_allocator.h> | ||||||
|  |  | ||||||
| // Here, we solve Ax = b using the Modified Preconditioned Conjugate Gradient (MPCG) algorithm. | // Here, we solve Ax = b using the Modified Preconditioned Conjugate Gradient (MPCG) algorithm. | ||||||
|   | |||||||
| @@ -18,7 +18,7 @@ | |||||||
|  |  | ||||||
| #include <bounce/cloth/cloth_solver.h> | #include <bounce/cloth/cloth_solver.h> | ||||||
| #include <bounce/cloth/cloth_force_solver.h> | #include <bounce/cloth/cloth_force_solver.h> | ||||||
| #include <bounce/cloth/cloth_contact_solver.h> | #include <bounce/cloth/contacts/cloth_contact_solver.h> | ||||||
| #include <bounce/cloth/cloth.h> | #include <bounce/cloth/cloth.h> | ||||||
| #include <bounce/cloth/particle.h> | #include <bounce/cloth/particle.h> | ||||||
| #include <bounce/dynamics/shapes/shape.h> | #include <bounce/dynamics/shapes/shape.h> | ||||||
|   | |||||||
| @@ -16,7 +16,7 @@ | |||||||
| * 3. This notice may not be removed or altered from any source distribution. | * 3. This notice may not be removed or altered from any source distribution. | ||||||
| */ | */ | ||||||
| 
 | 
 | ||||||
| #include <bounce/cloth/cloth_contact_solver.h> | #include <bounce/cloth/contacts/cloth_contact_solver.h> | ||||||
| #include <bounce/cloth/cloth_contact_manager.h> | #include <bounce/cloth/cloth_contact_manager.h> | ||||||
| #include <bounce/cloth/particle.h> | #include <bounce/cloth/particle.h> | ||||||
| #include <bounce/cloth/cloth_triangle.h> | #include <bounce/cloth/cloth_triangle.h> | ||||||
| @@ -16,7 +16,7 @@ | |||||||
| * 3. This notice may not be removed or altered from any source distribution. | * 3. This notice may not be removed or altered from any source distribution. | ||||||
| */ | */ | ||||||
| 
 | 
 | ||||||
| #include <bounce/cloth/cloth_particle_body_contact.h> | #include <bounce/cloth/contacts/cloth_particle_body_contact.h> | ||||||
| #include <bounce/cloth/particle.h> | #include <bounce/cloth/particle.h> | ||||||
| #include <bounce/dynamics/shapes/shape.h> | #include <bounce/dynamics/shapes/shape.h> | ||||||
| #include <bounce/dynamics/body.h> | #include <bounce/dynamics/body.h> | ||||||
| @@ -16,13 +16,13 @@ | |||||||
| * 3. This notice may not be removed or altered from any source distribution. | * 3. This notice may not be removed or altered from any source distribution. | ||||||
| */ | */ | ||||||
| 
 | 
 | ||||||
| #include <bounce/cloth/cloth_particle_triangle_contact.h> | #include <bounce/cloth/contacts/cloth_particle_triangle_contact.h> | ||||||
| #include <bounce/cloth/cloth_mesh.h> | #include <bounce/cloth/cloth_mesh.h> | ||||||
| #include <bounce/cloth/particle.h> | #include <bounce/cloth/particle.h> | ||||||
| #include <bounce/cloth/cloth_triangle.h> | #include <bounce/cloth/cloth_triangle.h> | ||||||
| #include <bounce/common/geometry.h> | #include <bounce/common/geometry.h> | ||||||
| 
 | 
 | ||||||
| // 
 | // Solve constrained Barycentric coordinates for point Q
 | ||||||
| static void b3Solve3(float32 out[3], | static void b3Solve3(float32 out[3], | ||||||
| 	const b3Vec3& A, const b3Vec3& B, const b3Vec3& C, | 	const b3Vec3& A, const b3Vec3& B, const b3Vec3& C, | ||||||
| 	const b3Vec3& Q) | 	const b3Vec3& Q) | ||||||
| @@ -19,8 +19,8 @@ | |||||||
| #include <bounce/cloth/spring_force.h> | #include <bounce/cloth/spring_force.h> | ||||||
| #include <bounce/cloth/particle.h> | #include <bounce/cloth/particle.h> | ||||||
| #include <bounce/cloth/cloth_force_solver.h> | #include <bounce/cloth/cloth_force_solver.h> | ||||||
| #include <bounce/cloth/dense_vec3.h> | #include <bounce/sparse/dense_vec3.h> | ||||||
| #include <bounce/cloth/sparse_sym_mat33.h> | #include <bounce/sparse/sparse_sym_mat33.h> | ||||||
|  |  | ||||||
| void b3SpringForceDef::Initialize(b3Particle* particle1, b3Particle* particle2, float32 structuralStiffness, float32 dampingStiffness) | void b3SpringForceDef::Initialize(b3Particle* particle1, b3Particle* particle2, float32 structuralStiffness, float32 dampingStiffness) | ||||||
| { | { | ||||||
|   | |||||||
| @@ -20,8 +20,8 @@ | |||||||
| #include <bounce/softbody/softbody_mesh.h> | #include <bounce/softbody/softbody_mesh.h> | ||||||
| #include <bounce/softbody/softbody_node.h> | #include <bounce/softbody/softbody_node.h> | ||||||
| #include <bounce/softbody/softbody.h> | #include <bounce/softbody/softbody.h> | ||||||
| #include <bounce/cloth/sparse_mat33.h> | #include <bounce/sparse/sparse_mat33.h> | ||||||
| #include <bounce/cloth/sparse_mat33_view.h> | #include <bounce/sparse/sparse_mat33_view.h> | ||||||
|  |  | ||||||
| // This work is based on the paper "Interactive Virtual Materials" written by  | // This work is based on the paper "Interactive Virtual Materials" written by  | ||||||
| // Matthias Mueller Fischer | // Matthias Mueller Fischer | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user