Need to incorporate the stretch parameter (lambda in the paper) into the cloth max segment length calculation.
Additionally, I'm not sure that taking the minimum of the grid lengths is appropriate. I think it logically should be the maximum length.
Code in question:
ClothConfiguration::ClothConfiguration(float const length_initial, float const width_initial,
float const grid_size_initial_guess)
...
{
...
max_segment_length_ = std::min({grid_size_initial_actual_length,
grid_size_initial_actual_width});
}
where ... indicates omitted lines.