|
Blender V5.3
|
#include <DNA_cloth_types.h>
This struct contains all the global data required to run a simulation. At the time of this writing, this structure contains data appropriate to run a simulation as described in Deformation Constraints in a Mass-Spring Model to Describe Rigid Cloth Behavior by Xavier Provot.
I've tried to keep similar, if not exact names for the variables as are presented in the paper. Where I've changed the concept slightly, as in stepsPerFrame compared to the time step in the paper, I've used variables with different names to minimize confusion.
Definition at line 72 of file DNA_cloth_types.h.
| char blender::ClothSimSettings::_pad0[4] = {} |
Definition at line 213 of file DNA_cloth_types.h.
| char blender::ClothSimSettings::_pad1[2] = {} |
Definition at line 208 of file DNA_cloth_types.h.
| char blender::ClothSimSettings::_pad7[6] = {} |
Definition at line 152 of file DNA_cloth_types.h.
| float blender::ClothSimSettings::avg_spring_len = 0.0f |
Used for normalized springs.
Definition at line 104 of file DNA_cloth_types.h.
Referenced by blender::cloth_build_springs(), blender::cloth_calc_force(), blender::cloth_calc_spring_force(), and blender::cloth_update_spring_lengths().
| float blender::ClothSimSettings::bending = 0.5f |
Flexion spring stiffness.
Definition at line 94 of file DNA_cloth_types.h.
Referenced by blender::cloth_calc_spring_force().
| float blender::ClothSimSettings::bending_damping = 0.5f |
Damping of bending springs.
Definition at line 158 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_270(), and blender::cloth_calc_spring_force().
| CLOTH_BENDING_MODEL blender::ClothSimSettings::bending_model = CLOTH_BENDING_ANGULAR |
Definition at line 188 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280(), blender::cloth_add_shear_bend_spring(), blender::cloth_build_springs(), blender::cloth_calc_spring_force(), and blender::cloth_update_springs().
UNUSED.
Definition at line 76 of file DNA_cloth_types.h.
| DNA_DEPRECATED float blender::ClothSimSettings::Cdis = {} |
Mechanical damping of springs.
Definition at line 80 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280().
| float blender::ClothSimSettings::collider_friction = 0.0f |
Friction with colliders.
Definition at line 126 of file DNA_cloth_types.h.
| float blender::ClothSimSettings::compression = 15.0f |
Definition at line 192 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280(), and blender::cloth_calc_spring_force().
| float blender::ClothSimSettings::compression_damp = 5.0f |
Mechanical damping of compression springs.
Definition at line 198 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280(), and blender::cloth_calc_spring_force().
| float blender::ClothSimSettings::Cvi = 1.0f |
Viscous/fluid damping.
Definition at line 82 of file DNA_cloth_types.h.
Referenced by blender::cloth_calc_force().
| float blender::ClothSimSettings::defgoal = 0.0f |
Definition at line 116 of file DNA_cloth_types.h.
Referenced by blender::cloth_apply_vgroup(), and blender::cloth_from_object().
| float blender::ClothSimSettings::density_strength = 0.0f |
Influence of hair density.
Definition at line 124 of file DNA_cloth_types.h.
Referenced by blender::cloth_continuum_step().
| float blender::ClothSimSettings::density_target = 0.0f |
Minimum density for hair.
Definition at line 122 of file DNA_cloth_types.h.
Referenced by blender::cloth_continuum_step().
| float blender::ClothSimSettings::dt = 0.0f |
This is the duration of our time step, computed.
Definition at line 86 of file DNA_cloth_types.h.
Referenced by blender::cloth_collision_response_static(), blender::cloth_selfcollision_response_static(), blender::cloth_solve_collisions(), blender::do_init_cloth(), and blender::SIM_cloth_solve().
| float blender::ClothSimSettings::eff_force_scale = 1000.0f |
Scaling of effector forces (see #softbody_calc_forces).
Definition at line 112 of file DNA_cloth_types.h.
| float blender::ClothSimSettings::eff_wind_scale = 250.0f |
Scaling of effector wind (see #softbody_calc_forces).
Definition at line 114 of file DNA_cloth_types.h.
| struct EffectorWeights* blender::ClothSimSettings::effector_weights = nullptr |
Definition at line 186 of file DNA_cloth_types.h.
Referenced by blender::BKE_modifier_blend_read_data(), blender::BKE_modifier_blend_write(), blender::BKE_particle_system_blend_read_data(), blender::blo_do_versions_250(), blender::cloth_calc_force(), blender::copy_data(), blender::do_hair_dynamics(), blender::do_step_cloth(), blender::foreach_ID_link(), blender::free_data(), blender::init_data(), and blender::update_depsgraph().
| CLOTH_SIMSETTINGS_FLAGS blender::ClothSimSettings::flags = CLOTH_SIMSETTINGS_FLAG_INTERNAL_SPRINGS_NORMAL |
Flags.
Definition at line 165 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280(), blender::cloth_build_springs(), blender::cloth_bvh_collision(), blender::cloth_bvh_selfcollision_is_active(), blender::cloth_calc_force(), blender::cloth_calc_spring_force(), blender::cloth_from_object(), blender::do_hair_dynamics(), blender::do_init_cloth(), blender::do_step_cloth(), and blender::SIM_cloth_solve().
| float blender::ClothSimSettings::fluid_density = 0.0f |
Density of the fluid inside or outside the object for use in the hydro-static pressure gradient.
Definition at line 150 of file DNA_cloth_types.h.
Referenced by blender::cloth_calc_force(), and blender::SIM_cloth_solve().
| float blender::ClothSimSettings::goalfrict = 0.0f |
Definition at line 118 of file DNA_cloth_types.h.
Referenced by blender::cloth_calc_force().
| float blender::ClothSimSettings::goalspring = 1.0f |
Definition at line 117 of file DNA_cloth_types.h.
Referenced by blender::cloth_calc_force(), and blender::do_hair_dynamics().
| float blender::ClothSimSettings::gravity[3] = {0.0f, 0.0f, -9.81f} |
Gravity/external force vector.
Definition at line 84 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_250().
| float blender::ClothSimSettings::internal_compression = 15.0f |
Definition at line 210 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280(), and blender::cloth_calc_spring_force().
How much the internal spring can diverge from the vertex normal during creation.
Definition at line 205 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280(), and blender::cloth_build_springs().
| float blender::ClothSimSettings::internal_spring_max_length = 0.0f |
The maximum length an internal spring can have during creation.
Definition at line 203 of file DNA_cloth_types.h.
Referenced by blender::cloth_build_springs().
| float blender::ClothSimSettings::internal_tension = 15.0f |
Definition at line 209 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280(), and blender::cloth_calc_spring_force().
| float blender::ClothSimSettings::mass = 0.3f |
The mass of the entire cloth.
Definition at line 88 of file DNA_cloth_types.h.
Referenced by blender::cloth_from_object(), and blender::do_step_cloth().
| float blender::ClothSimSettings::max_bend = 0.5f |
Max bending scaling value, min is "bending".
Definition at line 96 of file DNA_cloth_types.h.
Referenced by blender::cloth_calc_spring_force().
| float blender::ClothSimSettings::max_compression = 15.0f |
Definition at line 194 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280(), and blender::cloth_calc_spring_force().
| float blender::ClothSimSettings::max_internal_compression = 15.0f |
Definition at line 212 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280(), and blender::cloth_calc_spring_force().
| float blender::ClothSimSettings::max_internal_tension = 15.0f |
Definition at line 211 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280(), and blender::cloth_calc_spring_force().
| float blender::ClothSimSettings::max_sewing = 0.0f |
Max sewing force.
Definition at line 102 of file DNA_cloth_types.h.
Referenced by blender::cloth_calc_spring_force().
| float blender::ClothSimSettings::max_shear = 5.0f |
Max shear scaling value.
Definition at line 100 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280(), and blender::cloth_calc_spring_force().
| DNA_DEPRECATED float blender::ClothSimSettings::max_struct = 0 |
Max structural scaling value, min is "structural".
Definition at line 98 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280().
| float blender::ClothSimSettings::max_tension = 15.0f |
Definition at line 193 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280(), and blender::cloth_calc_spring_force().
| float blender::ClothSimSettings::maxgoal = 1.0f |
See SB.
Definition at line 110 of file DNA_cloth_types.h.
| int blender::ClothSimSettings::maxspringlen = 10 |
In percent!; if tearing enabled, a spring will get cut.
Definition at line 169 of file DNA_cloth_types.h.
| float blender::ClothSimSettings::mingoal = 0.0f |
See SB.
Definition at line 78 of file DNA_cloth_types.h.
| DNA_DEPRECATED int blender::ClothSimSettings::preroll = 0 |
How many frames of simulation to do before we start.
Definition at line 167 of file DNA_cloth_types.h.
| short blender::ClothSimSettings::presets = 2 |
Used for presets on GUI.
Definition at line 183 of file DNA_cloth_types.h.
Referenced by blender::BKE_modifier_blend_read_data(), and blender::BKE_particle_system_blend_read_data().
| float blender::ClothSimSettings::pressure_factor = 1.0f |
The scaling factor to apply to the actual pressure. pressure = ((current_volume/target_volume) - 1 + uniform_pressure_force) * pressure_factor
Definition at line 145 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280(), and blender::cloth_calc_force().
| short blender::ClothSimSettings::reset = 0 |
Definition at line 184 of file DNA_cloth_types.h.
Referenced by blender::BKE_modifier_blend_read_data(), and blender::clothModifier_do().
| short blender::ClothSimSettings::shapekey_rest = 0 |
Vertex group for scaling structural stiffness.
Definition at line 181 of file DNA_cloth_types.h.
Referenced by blender::cloth_build_springs(), blender::cloth_from_object(), blender::deform_verts(), blender::bke::get_orco_coords(), and blender::required_data_mask().
| float blender::ClothSimSettings::shear = 5.0f |
Shear spring stiffness.
Definition at line 92 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280(), and blender::cloth_calc_spring_force().
| float blender::ClothSimSettings::shear_damp = 5.0f |
Mechanical damping of shear springs.
Definition at line 200 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280(), and blender::cloth_calc_spring_force().
| float blender::ClothSimSettings::shrink_max = 0.0f |
Max amount to shrink cloth by 0.0f (no shrink), 1.0f (shrink to nothing), -1.0f (double the edge length).
Definition at line 134 of file DNA_cloth_types.h.
Referenced by blender::cloth_shrink_factor().
| float blender::ClothSimSettings::shrink_min = 0.0f |
Min amount to shrink cloth by 0.0f (no shrink), 1.0f (shrink to nothing), -1.0f (double the edge length).
Definition at line 131 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280(), blender::cloth_shrink_factor(), and blender::do_step_cloth().
| float blender::ClothSimSettings::sim_time_old = 0.0f |
Definition at line 115 of file DNA_cloth_types.h.
| short blender::ClothSimSettings::solver_type = 0 |
Which solver should be used? txold.
Definition at line 171 of file DNA_cloth_types.h.
| int blender::ClothSimSettings::stepsPerFrame = 5 |
Number of time steps per frame.
Definition at line 163 of file DNA_cloth_types.h.
Referenced by blender::do_init_cloth().
| DNA_DEPRECATED float blender::ClothSimSettings::structural = 0 |
Structural spring stiffness.
Definition at line 90 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280().
| float blender::ClothSimSettings::target_volume = 0.0f |
User set volume. This is the volume the mesh wants to expand to (the equilibrium volume).
Definition at line 140 of file DNA_cloth_types.h.
Referenced by blender::cloth_calc_force().
| float blender::ClothSimSettings::tension = 15.0f |
Definition at line 191 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280(), and blender::cloth_calc_spring_force().
| float blender::ClothSimSettings::tension_damp = 5.0f |
Mechanical damping of tension springs.
Definition at line 196 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_280(), and blender::cloth_calc_spring_force().
| float blender::ClothSimSettings::time_scale = 1.0f |
Multiplies cloth speed.
Definition at line 108 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_270(), blender::cloth_calc_force(), blender::clothModifier_do(), and blender::SIM_cloth_solve().
| float blender::ClothSimSettings::timescale = 1.0f |
Parameter how fast cloth runs.
Definition at line 106 of file DNA_cloth_types.h.
Referenced by blender::cloth_collision_response_static(), blender::cloth_selfcollision_response_static(), blender::cloth_solve_collisions(), blender::clothModifier_do(), and blender::SIM_cloth_solve().
| float blender::ClothSimSettings::uniform_pressure_force = 0.0f |
The uniform pressure that is constantly applied to the mesh. Can be negative.
Definition at line 138 of file DNA_cloth_types.h.
Referenced by blender::cloth_calc_force().
| DNA_DEPRECATED float blender::ClothSimSettings::vel_damping = 0 |
Damp the velocity to speed up getting to the resting position.
Definition at line 128 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_260(), and blender::blo_do_versions_270().
| float blender::ClothSimSettings::velocity_smooth = 0.0f |
Smoothing of velocities for hair.
Definition at line 120 of file DNA_cloth_types.h.
Referenced by blender::blo_do_versions_250(), and blender::cloth_continuum_step().
| short blender::ClothSimSettings::vgroup_bend = 0 |
Vertex group for scaling bending stiffness.
Definition at line 173 of file DNA_cloth_types.h.
Referenced by blender::BKE_object_defgroup_remap_update_users(), blender::blo_do_versions_280(), blender::cloth_apply_vgroup(), and blender::cloth_uses_vgroup().
| short blender::ClothSimSettings::vgroup_intern = 0 |
Vertex group for scaling structural stiffness.
Definition at line 207 of file DNA_cloth_types.h.
Referenced by blender::BKE_object_defgroup_remap_update_users(), blender::cloth_apply_vgroup(), and blender::cloth_uses_vgroup().
| short blender::ClothSimSettings::vgroup_mass = 0 |
Optional vertexgroup name for assigning weight.
Definition at line 175 of file DNA_cloth_types.h.
Referenced by blender::BKE_object_defgroup_remap_update_users(), blender::blo_do_versions_280(), blender::cloth_apply_vgroup(), blender::cloth_bvh_collision(), blender::cloth_from_object(), blender::cloth_solve_collisions(), blender::cloth_uses_vgroup(), blender::hair_create_input_mesh(), and blender::SIM_cloth_solve().
| short blender::ClothSimSettings::vgroup_pressure = 0 |
Definition at line 151 of file DNA_cloth_types.h.
Referenced by blender::BKE_object_defgroup_remap_update_users(), blender::cloth_apply_vgroup(), blender::cloth_get_pressure_weights(), and blender::cloth_uses_vgroup().
| short blender::ClothSimSettings::vgroup_shear = 0 |
Vertex group for scaling structural stiffness.
Definition at line 190 of file DNA_cloth_types.h.
Referenced by blender::BKE_object_defgroup_remap_update_users(), blender::blo_do_versions_280(), blender::cloth_apply_vgroup(), and blender::cloth_uses_vgroup().
| short blender::ClothSimSettings::vgroup_shrink = 0 |
Vertex group for shrinking cloth.
Definition at line 179 of file DNA_cloth_types.h.
Referenced by blender::BKE_object_defgroup_remap_update_users(), blender::blo_do_versions_280(), blender::cloth_apply_vgroup(), blender::cloth_uses_vgroup(), and blender::do_step_cloth().
| short blender::ClothSimSettings::vgroup_struct = 0 |
Vertex group for scaling structural stiffness.
Definition at line 177 of file DNA_cloth_types.h.
Referenced by blender::BKE_object_defgroup_remap_update_users(), blender::blo_do_versions_280(), blender::cloth_apply_vgroup(), and blender::cloth_uses_vgroup().
| float blender::ClothSimSettings::voxel_cell_size = 0.1f |
Size of voxel grid cells for continuum dynamics.
Definition at line 160 of file DNA_cloth_types.h.
Referenced by blender::cloth_continuum_step().