Blender V5.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
8
9#pragma once
10
11#include "DNA_listBase.h"
12
13namespace blender {
14
16struct Depsgraph;
17struct EffectorCache;
18struct Implicit_Data;
19struct Object;
20
27
28struct Implicit_Data *SIM_mass_spring_solver_create(int numverts, int numsprings);
29void SIM_mass_spring_solver_free(struct Implicit_Data *id);
31
32int SIM_cloth_solver_init(struct Object *ob, struct ClothModifierData *clmd);
34
36int SIM_cloth_solve(struct Depsgraph *depsgraph,
37 struct Object *ob,
38 float frame,
39 struct ClothModifierData *clmd,
40 ListBaseT<EffectorCache> *effectors);
43
44} // namespace blender
These structs are the foundation for all linked lists in the library system.
BMesh Iterators.
@ SIM_SOLVER_NUMERICAL_ISSUE
@ SIM_SOLVER_NO_CONVERGENCE
@ SIM_SOLVER_INVALID_INPUT
int SIM_cloth_solve(Depsgraph *depsgraph, Object *ob, float frame, ClothModifierData *clmd, ListBaseT< EffectorCache > *effectors)
void SIM_mass_spring_set_implicit_vertex_mass(Implicit_Data *data, int index, float mass)
Implicit_Data * SIM_mass_spring_solver_create(int numverts, int numsprings)
int SIM_mass_spring_solver_numvert(struct Implicit_Data *id)
void SIM_cloth_solver_set_volume(ClothModifierData *clmd)
BMesh const char void * data
void SIM_cloth_solver_free(ClothModifierData *clmd)
void SIM_mass_spring_solver_free(Implicit_Data *id)
void SIM_cloth_solver_set_positions(ClothModifierData *clmd)
int SIM_cloth_solver_init(Object *, ClothModifierData *clmd)