Blender V5.0
Cloth Struct Reference

#include <BKE_cloth.hh>

Public Attributes

ClothVertexverts
LinkNodesprings
unsigned int numsprings
unsigned int mvert_num
unsigned int primitive_num
unsigned char old_solver_type
unsigned char pad2
short pad3
BVHTreebvhtree
BVHTreebvhselftree
blender::int3vert_tris
Implicit_Dataimplicit
blender::Set< blender::OrderedEdgeedgeset
int last_frame
float initial_mesh_volume
float average_acceleration [3]
const blender::int2edges
blender::Set< blender::OrderedEdgesew_edge_graph

Detailed Description

This structure describes a cloth object against which the simulation can run.

The m and n members of this structure represent the assumed rectangular ordered grid for which the original paper is written. At some point they need to disappear and we need to determine our own connectivity of the mesh based on the actual edges in the mesh.

Definition at line 68 of file BKE_cloth.hh.

Member Data Documentation

◆ average_acceleration

◆ bvhselftree

◆ bvhtree

◆ edges

◆ edgeset

Definition at line 81 of file BKE_cloth.hh.

Referenced by cloth_build_springs(), and cloth_free_errorsprings().

◆ implicit

◆ initial_mesh_volume

float Cloth::initial_mesh_volume

Definition at line 83 of file BKE_cloth.hh.

Referenced by cloth_calc_force(), and SIM_cloth_solver_set_volume().

◆ last_frame

int Cloth::last_frame

Definition at line 82 of file BKE_cloth.hh.

Referenced by clothModifier_do(), and do_init_cloth().

◆ mvert_num

◆ numsprings

unsigned int Cloth::numsprings

◆ old_solver_type

unsigned char Cloth::old_solver_type

Definition at line 74 of file BKE_cloth.hh.

Referenced by cloth_from_object().

◆ pad2

unsigned char Cloth::pad2

Definition at line 75 of file BKE_cloth.hh.

◆ pad3

short Cloth::pad3

Definition at line 76 of file BKE_cloth.hh.

◆ primitive_num

◆ sew_edge_graph

blender::Set<blender::OrderedEdge> Cloth::sew_edge_graph

Definition at line 86 of file BKE_cloth.hh.

Referenced by cloth_build_springs(), and cloth_bvh_selfcollision_is_active().

◆ springs

◆ vert_tris

◆ verts


The documentation for this struct was generated from the following file: