Minimum displacements for cloth-obstacle penetration resolving