Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/cloth.c
| Context not available. | |||||
| clmd->sim_parms->gravity[0] = 0.0; | clmd->sim_parms->gravity[0] = 0.0; | ||||
| clmd->sim_parms->gravity[1] = 0.0; | clmd->sim_parms->gravity[1] = 0.0; | ||||
| clmd->sim_parms->gravity[2] = -9.81; | clmd->sim_parms->gravity[2] = -9.81; | ||||
| clmd->sim_parms->structural = 15.0; | clmd->sim_parms->tension = 15.0; | ||||
| clmd->sim_parms->max_struct = 15.0; | clmd->sim_parms->max_tension = 15.0; | ||||
| clmd->sim_parms->shear = 15.0; | clmd->sim_parms->compression = 15.0; | ||||
| clmd->sim_parms->max_compression = 15.0; | |||||
| clmd->sim_parms->shear = 5.0; | |||||
| clmd->sim_parms->max_shear = 5.0; | |||||
| clmd->sim_parms->bending = 0.5; | clmd->sim_parms->bending = 0.5; | ||||
| clmd->sim_parms->max_bend = 0.5; | clmd->sim_parms->max_bend = 0.5; | ||||
| clmd->sim_parms->tension_damp = 5.0; | |||||
| clmd->sim_parms->compression_damp = 5.0; | |||||
| clmd->sim_parms->shear_damp = 5.0; | |||||
| clmd->sim_parms->bending_damping = 0.5; | clmd->sim_parms->bending_damping = 0.5; | ||||
| clmd->sim_parms->Cdis = 5.0; | clmd->sim_parms->Cdis = 5.0; | ||||
| clmd->sim_parms->Cvi = 1.0; | clmd->sim_parms->Cvi = 1.0; | ||||
| Context not available. | |||||
| clmd->sim_parms->voxel_cell_size = 0.1f; | clmd->sim_parms->voxel_cell_size = 0.1f; | ||||
| clmd->sim_parms->bending_model = CLOTH_BENDING_ANGULAR; | |||||
| if (!clmd->sim_parms->effector_weights) | if (!clmd->sim_parms->effector_weights) | ||||
| clmd->sim_parms->effector_weights = BKE_add_effector_weights(NULL); | clmd->sim_parms->effector_weights = BKE_add_effector_weights(NULL); | ||||
| Context not available. | |||||
| if (clmd->sim_parms->flags & CLOTH_SIMSETTINGS_FLAG_SCALING ) { | if (clmd->sim_parms->flags & CLOTH_SIMSETTINGS_FLAG_SCALING ) { | ||||
| if ( dvert->dw[j].def_nr == (clmd->sim_parms->vgroup_struct-1)) { | if ( dvert->dw[j].def_nr == (clmd->sim_parms->vgroup_struct-1)) { | ||||
| verts->struct_stiff = dvert->dw [j].weight; | verts->struct_stiff = dvert->dw [j].weight; | ||||
| } | |||||
| if ( dvert->dw[j].def_nr == (clmd->sim_parms->vgroup_shear-1)) { | |||||
| verts->shear_stiff = dvert->dw [j].weight; | verts->shear_stiff = dvert->dw [j].weight; | ||||
| } | } | ||||
| Context not available. | |||||