Blender  V2.93
SIM_mass_spring.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) Blender Foundation
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 struct ClothModifierData;
31 struct Depsgraph;
32 struct Implicit_Data;
33 struct ListBase;
34 struct Object;
35 
37  SIM_SOLVER_SUCCESS = (1 << 0),
42 
43 struct Implicit_Data *SIM_mass_spring_solver_create(int numverts, int numsprings);
46 
47 int SIM_cloth_solver_init(struct Object *ob, struct ClothModifierData *clmd);
48 void SIM_cloth_solver_free(struct ClothModifierData *clmd);
50  struct Object *ob,
51  float frame,
52  struct ClothModifierData *clmd,
53  struct ListBase *effectors);
56 
57 #ifdef __cplusplus
58 }
59 #endif
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:51
void SIM_cloth_solver_set_volume(struct ClothModifierData *clmd)
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