Blender V5.3
BKE_cloth.hh File Reference
#include "BLI_math_vector_types.hh"
#include "BLI_ordered_edge.hh"
#include "BLI_set.hh"
#include <cfloat>

Go to the source code of this file.

Classes

struct  blender::ClothHairData
struct  blender::ClothSolverResult
struct  blender::Cloth
struct  blender::ClothVertex
struct  blender::ClothSpring
struct  blender::ColliderContacts

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define DO_INLINE   MALWAYS_INLINE
#define SOFTGOALSNAP   0.999f
#define ALMOST_ZERO   FLT_EPSILON
#define VECSUBADDSS(v1, v2, aS, v3, bS)
#define VECADDSS(v1, v2, aS, v3, bS)
#define VECADDS(v1, v2, v3, bS)
#define VECSUBMUL(v1, v2, aS)
#define VECSUBS(v1, v2, v3, bS)
#define VECADDMUL(v1, v2, aS)

Enumerations

enum  blender::eClothVertexFlag { blender::CLOTH_VERT_FLAG_PINNED = (1 << 0) , blender::CLOTH_VERT_FLAG_NOSELFCOLL = (1 << 1) , blender::CLOTH_VERT_FLAG_NOOBJCOLL = (1 << 2) }
enum  blender::CLOTH_SPRING_TYPES {
  blender::CLOTH_SPRING_TYPE_STRUCTURAL = (1 << 1) , blender::CLOTH_SPRING_TYPE_SHEAR = (1 << 2) , blender::CLOTH_SPRING_TYPE_BENDING = (1 << 3) , blender::CLOTH_SPRING_TYPE_GOAL = (1 << 4) ,
  blender::CLOTH_SPRING_TYPE_SEWING = (1 << 5) , blender::CLOTH_SPRING_TYPE_BENDING_HAIR = (1 << 6) , blender::CLOTH_SPRING_TYPE_INTERNAL = (1 << 7)
}
enum  blender::CLOTH_SPRINGS_FLAGS { blender::CLOTH_SPRING_FLAG_DEACTIVATE = (1 << 1) , blender::CLOTH_SPRING_FLAG_NEEDED = (1 << 2) }

Functions

int blender::cloth_bvh_collision (Depsgraph *depsgraph, Object *ob, ClothModifierData *clmd, float step, float dt)
void blender::clothModifier_do (ClothModifierData *clmd, Depsgraph *depsgraph, Scene *scene, Object *ob, const Mesh *mesh, float(*vertexCos)[3])
Free Modifier Data
void blender::cloth_free_modifier_extern (ClothModifierData *clmd)
void blender::cloth_free_modifier (ClothModifierData *clmd)
Internal Functions
int blender::cloth_uses_vgroup (ClothModifierData *clmd)
BVH Tree
void blender::bvhtree_update_from_cloth (ClothModifierData *clmd, bool moving, bool self)
Modifier Simulation Entry Points
void blender::cloth_clear_cache (Object *ob, ClothModifierData *clmd, float framenr)
Spring Network Building Implementation
void blender::cloth_parallel_transport_hair_frame (float mat[3][3], const float dir_old[3], const float dir_new[3])

Macro Definition Documentation

◆ ALMOST_ZERO

◆ DO_INLINE

◆ SOFTGOALSNAP

◆ VECADDMUL

#define VECADDMUL ( v1,
v2,
aS )
Value:
{ \
*(v1) += *(v2) * aS; \
*(v1 + 1) += *(v2 + 1) * aS; \
*(v1 + 2) += *(v2 + 2) * aS; \
} \
((void)0)

Definition at line 178 of file BKE_cloth.hh.

Referenced by blender::cloth_collision_response_static(), blender::cloth_selfcollision_response_static(), and blender::collision_interpolateOnTriangle().

◆ VECADDS

#define VECADDS ( v1,
v2,
v3,
bS )
Value:
{ \
*(v1) = *(v2) + *(v3) * bS; \
*(v1 + 1) = *(v2 + 1) + *(v3 + 1) * bS; \
*(v1 + 2) = *(v2 + 2) + *(v3 + 2) * bS; \
} \
((void)0)

Definition at line 157 of file BKE_cloth.hh.

Referenced by blender::add_lfvector_lfvectorS().

◆ VECADDSS

#define VECADDSS ( v1,
v2,
aS,
v3,
bS )
Value:
{ \
*(v1) = *(v2) * aS + *(v3) * bS; \
*(v1 + 1) = *(v2 + 1) * aS + *(v3 + 1) * bS; \
*(v1 + 2) = *(v2 + 2) * aS + *(v3 + 2) * bS; \
} \
((void)0)

Definition at line 150 of file BKE_cloth.hh.

Referenced by blender::add_lfvectorS_lfvectorS().

◆ VECSUBADDSS

#define VECSUBADDSS ( v1,
v2,
aS,
v3,
bS )
Value:
{ \
*(v1) -= *(v2) * aS + *(v3) * bS; \
*(v1 + 1) -= *(v2 + 1) * aS + *(v3 + 1) * bS; \
*(v1 + 2) -= *(v2 + 2) * aS + *(v3 + 2) * bS; \
} \
((void)0)

Definition at line 143 of file BKE_cloth.hh.

Referenced by blender::subadd_fmatrixS_fmatrixS().

◆ VECSUBMUL

#define VECSUBMUL ( v1,
v2,
aS )
Value:
{ \
*(v1) -= *(v2) * aS; \
*(v1 + 1) -= *(v2 + 1) * aS; \
*(v1 + 2) -= *(v2 + 2) * aS; \
} \
((void)0)

Definition at line 164 of file BKE_cloth.hh.

Referenced by blender::submul_lfvectorS().

◆ VECSUBS

#define VECSUBS ( v1,
v2,
v3,
bS )
Value:
{ \
*(v1) = *(v2) - *(v3) * bS; \
*(v1 + 1) = *(v2 + 1) - *(v3 + 1) * bS; \
*(v1 + 2) = *(v2 + 2) - *(v3 + 2) * bS; \
} \
((void)0)

Definition at line 171 of file BKE_cloth.hh.

Referenced by blender::sub_lfvector_lfvectorS().