29#define DO_INLINE MALWAYS_INLINE
32#define SOFTGOALSNAP 0.999f
36#define ALMOST_ZERO FLT_EPSILON
143#define VECSUBADDSS(v1, v2, aS, v3, bS) \
145 *(v1) -= *(v2) * aS + *(v3) * bS; \
146 *(v1 + 1) -= *(v2 + 1) * aS + *(v3 + 1) * bS; \
147 *(v1 + 2) -= *(v2 + 2) * aS + *(v3 + 2) * bS; \
150#define VECADDSS(v1, v2, aS, v3, bS) \
152 *(v1) = *(v2) * aS + *(v3) * bS; \
153 *(v1 + 1) = *(v2 + 1) * aS + *(v3 + 1) * bS; \
154 *(v1 + 2) = *(v2 + 2) * aS + *(v3 + 2) * bS; \
157#define VECADDS(v1, v2, v3, bS) \
159 *(v1) = *(v2) + *(v3) * bS; \
160 *(v1 + 1) = *(v2 + 1) + *(v3 + 1) * bS; \
161 *(v1 + 2) = *(v2 + 2) + *(v3 + 2) * bS; \
164#define VECSUBMUL(v1, v2, aS) \
166 *(v1) -= *(v2) * aS; \
167 *(v1 + 1) -= *(v2 + 1) * aS; \
168 *(v1 + 2) -= *(v2 + 2) * aS; \
171#define VECSUBS(v1, v2, v3, bS) \
173 *(v1) = *(v2) - *(v3) * bS; \
174 *(v1 + 1) = *(v2 + 1) - *(v3 + 1) * bS; \
175 *(v1 + 2) = *(v2 + 2) - *(v3 + 2) * bS; \
178#define VECADDMUL(v1, v2, aS) \
180 *(v1) += *(v2) * aS; \
181 *(v1 + 1) += *(v2 + 1) * aS; \
182 *(v1 + 2) += *(v2 + 2) * aS; \
229 Depsgraph *depsgraph,
233 float (*vertexCos)[3]);
244 const float dir_old[3],
245 const float dir_new[3]);
VecBase< float, D > step(VecOp< float, D >, VecOp< float, D >) RET
int cloth_uses_vgroup(ClothModifierData *clmd)
void cloth_free_modifier(ClothModifierData *clmd)
@ CLOTH_SPRING_TYPE_BENDING
@ CLOTH_SPRING_TYPE_STRUCTURAL
@ CLOTH_SPRING_TYPE_SHEAR
@ CLOTH_SPRING_TYPE_SEWING
@ CLOTH_SPRING_TYPE_INTERNAL
@ CLOTH_SPRING_TYPE_BENDING_HAIR
void clothModifier_do(ClothModifierData *clmd, Depsgraph *depsgraph, Scene *scene, Object *ob, const Mesh *mesh, float(*vertexCos)[3])
VecBase< int32_t, 2 > int2
VecBase< int32_t, 3 > int3
void cloth_parallel_transport_hair_frame(float mat[3][3], const float dir_old[3], const float dir_new[3])
void cloth_clear_cache(Object *ob, ClothModifierData *clmd, float framenr)
int cloth_bvh_collision(Depsgraph *depsgraph, Object *ob, ClothModifierData *clmd, float step, float dt)
void bvhtree_update_from_cloth(ClothModifierData *clmd, bool moving, bool self)
void cloth_free_modifier_extern(ClothModifierData *clmd)
@ CLOTH_VERT_FLAG_NOSELFCOLL
@ CLOTH_VERT_FLAG_NOOBJCOLL
@ CLOTH_SPRING_FLAG_DEACTIVATE
@ CLOTH_SPRING_FLAG_NEEDED
unsigned int impulse_count
unsigned char old_solver_type
float average_acceleration[3]
Set< OrderedEdge > sew_edge_graph
Set< OrderedEdge > edgeset
unsigned int primitive_num
float initial_mesh_volume