Blender Git Commit Log

Git Commits -> Revision 3c3c993

Revision 3c3c993 by Alexander Gavrilov
January 6, 2021, 12:05 (GMT)
Cloth: completely exclude fully pinned triangles from collision.

Currently such triangles are effectively already excluded, because
the calculated forces are not applied to pinned vertices. However
these forces are still being computed, which is inefficient.

This adds an early check for triangles where all vertices are
pinned during BVH overlap detection, which significantly speeds
up certain use cases with big fully pinned areas that happen to
overlap a collider. In case of self collision both triangles must
be fully pinned to exclude safely, because the computation is
symmetric and handles two triangles at the same time.

Commit Details:

Full Hash: 3c3c993c7c103932dce7b30cd69b501e4769bf60
Parent Commit: 4407ed1
Lines Changed: +58, -16

1 Modified Path:

/source/blender/blenkernel/intern/collision.c (+58, -16) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021