Blender Git Loki

Git Commits -> Revision e547bcf

Revision e547bcf by Alexander Gavrilov
January 7, 2021, 18:19 (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.

Differential Revision: https://developer.blender.org/D10041

Commit Details:

Full Hash: e547bcf5443d4bc0a5af8e1b2f40cefc246de1d0
Parent Commit: 3db2bc8
Lines Changed: +57, -16

1 Modified Path:

/source/blender/blenkernel/intern/collision.c (+57, -16) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021