Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Genrich <daniel.genrich@gmx.net>2008-02-12 14:04:58 +0300
committerDaniel Genrich <daniel.genrich@gmx.net>2008-02-12 14:04:58 +0300
commite82484b0bb628a533fc1cd43be804c365d54f3f1 (patch)
tree419a5a24f87b24da2d610c4d29aacd931488ef22 /source/blender/makesdna/DNA_cloth_types.h
parent695ea7230ad3c2ef16f742f4cdc4247fa58056e9 (diff)
Cloth: New: *simple* (OpenMP enabled) Selfcollisions available
Diffstat (limited to 'source/blender/makesdna/DNA_cloth_types.h')
-rw-r--r--source/blender/makesdna/DNA_cloth_types.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/makesdna/DNA_cloth_types.h b/source/blender/makesdna/DNA_cloth_types.h
index 2b18142258c..40abe012a5a 100644
--- a/source/blender/makesdna/DNA_cloth_types.h
+++ b/source/blender/makesdna/DNA_cloth_types.h
@@ -82,21 +82,21 @@ typedef struct SimulationSettings
float max_struct; /* max structural scaling value, min is "structural" */
float max_shear; /* max shear scaling value, UNUSED */
int firstcachedframe;
- int pad;
+ float avg_spring_len; /* used for normalized springs */
}
SimulationSettings;
typedef struct CollisionSettings
{
- float epsilon; /* The radius of a particle in the cloth. */
+ float epsilon; /* min distance for collisions. */
float self_friction; /* Fiction/damping with self contact. */
float friction; /* Friction/damping applied on contact with other object.*/
- short collision_type; /* which collision system is used. */
+ short self_loop_count; /* How many iterations for the selfcollision loop */
short loop_count; /* How many iterations for the collision loop. */
struct LinkNode *collision_list; /* e.g. pointer to temp memory for collisions */
int flags; /* collision flags defined in BKE_cloth.h */
- float avg_spring_len; /* for selfcollision */
+ float selfepsilon; /* for selfcollision */
}
CollisionSettings;
@@ -125,6 +125,7 @@ typedef struct Cloth
struct MFace *mfaces;
struct Implicit_Data *implicit; /* our implicit solver connects to this pointer */
struct Implicit_Data *implicitEM; /* our implicit solver connects to this pointer */
+ struct EdgeHash *edgehash; /* used for selfcollisions */
}
Cloth;