cdcpd icon indicating copy to clipboard operation
cdcpd copied to clipboard

Incorporate stretch parameter into cloth max segment length calculation

Open dcolli23 opened this issue 3 years ago • 0 comments

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.

dcolli23 avatar Nov 16 '22 21:11 dcolli23