Blender V5.0
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
8
9#pragma once
10
12struct Depsgraph;
13struct Implicit_Data;
14struct ListBase;
15struct Object;
16
23
24struct Implicit_Data *SIM_mass_spring_solver_create(int numverts, int numsprings);
27
28int SIM_cloth_solver_init(struct Object *ob, struct ClothModifierData *clmd);
29void SIM_mass_spring_set_implicit_vertex_mass(struct Implicit_Data *data, int index, float mass);
30
32int SIM_cloth_solve(struct Depsgraph *depsgraph,
33 struct Object *ob,
34 float frame,
35 struct ClothModifierData *clmd,
36 struct ListBase *effectors);
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)
BMesh const char void * data
BPy_StructRNA * depsgraph