diff options
Diffstat (limited to 'source/blender/physics/BPH_mass_spring.h')
-rw-r--r-- | source/blender/physics/BPH_mass_spring.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/physics/BPH_mass_spring.h b/source/blender/physics/BPH_mass_spring.h index de5fdd2b81d..db355c18f2e 100644 --- a/source/blender/physics/BPH_mass_spring.h +++ b/source/blender/physics/BPH_mass_spring.h @@ -40,7 +40,10 @@ struct Implicit_Data; struct Object; struct ClothModifierData; struct ListBase; +struct Strands; +struct HairSimParams; struct VoxelData; +struct CacheEffector; typedef enum eMassSpringSolverStatus { BPH_SOLVER_SUCCESS = (1 << 0), @@ -51,14 +54,19 @@ typedef enum eMassSpringSolverStatus { struct Implicit_Data *BPH_mass_spring_solver_create(int numverts, int numsprings); void BPH_mass_spring_solver_free(struct Implicit_Data *id); +int BPH_mass_spring_solver_numvert(struct Implicit_Data *id); int BPH_cloth_solver_init(struct Object *ob, struct ClothModifierData *clmd); void BPH_cloth_solver_free(struct ClothModifierData *clmd); int BPH_cloth_solve(struct Object *ob, float frame, struct ClothModifierData *clmd, struct ListBase *effectors); -void BKE_cloth_solver_set_positions(struct ClothModifierData *clmd); +void BPH_cloth_solver_set_positions(struct ClothModifierData *clmd); bool BPH_cloth_solver_get_texture_data(struct Object *ob, struct ClothModifierData *clmd, struct VoxelData *vd); +struct Implicit_Data *BPH_strands_solver_create(struct Strands *strands, struct HairSimParams *params); +bool BPH_strands_solve(struct Strands *strands, float mat[4][4], struct Implicit_Data *id, struct HairSimParams *params, float frame, float frame_prev, struct Scene *scene, + struct ListBase *effectors, struct CacheEffector *cache_effectors, int tot_cache_effectors); + #ifdef __cplusplus } #endif |