Blender  V3.3
SIM_mass_spring.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 struct ClothModifierData;
15 struct Depsgraph;
16 struct Implicit_Data;
17 struct ListBase;
18 struct Object;
19 
21  SIM_SOLVER_SUCCESS = (1 << 0),
26 
27 struct Implicit_Data *SIM_mass_spring_solver_create(int numverts, int numsprings);
30 
31 int SIM_cloth_solver_init(struct Object *ob, struct ClothModifierData *clmd);
32 void SIM_mass_spring_set_implicit_vertex_mass(struct Implicit_Data *data, int index, float mass);
33 
34 void SIM_cloth_solver_free(struct ClothModifierData *clmd);
36  struct Object *ob,
37  float frame,
38  struct ClothModifierData *clmd,
39  struct ListBase *effectors);
42 
43 #ifdef __cplusplus
44 }
45 #endif
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:35
void SIM_cloth_solver_set_volume(struct ClothModifierData *clmd)
void SIM_mass_spring_set_implicit_vertex_mass(struct Implicit_Data *data, int index, float mass)
int SIM_mass_spring_solver_numvert(struct Implicit_Data *id)
int SIM_cloth_solve(struct Depsgraph *depsgraph, struct Object *ob, float frame, struct ClothModifierData *clmd, struct ListBase *effectors)
eMassSpringSolverStatus
@ SIM_SOLVER_SUCCESS
@ SIM_SOLVER_INVALID_INPUT
@ SIM_SOLVER_NUMERICAL_ISSUE
@ SIM_SOLVER_NO_CONVERGENCE
void SIM_mass_spring_solver_free(struct Implicit_Data *id)
int SIM_cloth_solver_init(struct Object *ob, struct ClothModifierData *clmd)
void SIM_cloth_solver_set_positions(struct ClothModifierData *clmd)
struct Implicit_Data * SIM_mass_spring_solver_create(int numverts, int numsprings)
void SIM_cloth_solver_free(struct ClothModifierData *clmd)
const Depsgraph * depsgraph