Blender V4.3
SIM_mass_spring.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
16struct Depsgraph;
17struct Implicit_Data;
18struct ListBase;
19struct Object;
20
27
28struct Implicit_Data *SIM_mass_spring_solver_create(int numverts, int numsprings);
31
32int SIM_cloth_solver_init(struct Object *ob, struct ClothModifierData *clmd);
33void SIM_mass_spring_set_implicit_vertex_mass(struct Implicit_Data *data, int index, float mass);
34
36int SIM_cloth_solve(struct Depsgraph *depsgraph,
37 struct Object *ob,
38 float frame,
39 struct ClothModifierData *clmd,
40 struct ListBase *effectors);
43
44#ifdef __cplusplus
45}
46#endif
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)
struct Implicit_Data * SIM_mass_spring_solver_create(int numverts, int numsprings)
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)
void SIM_cloth_solver_free(struct ClothModifierData *clmd)
const Depsgraph * depsgraph