Blender Git Commit Log

Git Commits -> Revision 2e69b0c

Revision 2e69b0c by Nicholas Bishop (master)
December 30, 2012, 18:28 (GMT)
Add dynamic topology support to the PBVH

* Add BLI_pbvh_build_bmesh(), similar to the other PBVH builders but
specialized for BMesh. Whereas the PBVH leaf nodes for mesh and
grids only store a start-index and count into the primitive indices
array, the BMesh version uses GHashes to store the full set of faces
and vertices in leaf nodes

* Update PBVH iterator to handle BMesh

* Make some of the pbvh.c functions non-static so they can be used by
the new pbvh_bmesh code

* The BLI_pbvh_bmesh_update_topology() function is the main reason for
adding BMesh support to the PBVH. This function is used during a
sculpt stroke to dynamically collapse edges that are particular
short and subdivide edges that are particularly long.

Commit Details:

Full Hash: 2e69b0cd0b26fb1e641536de5a81a02f4478065c
SVN Revision: 53441
Parent Commit: 2c9d22f
Lines Changed: +1582, -22

1 Added Path:

/source/blender/blenkernel/intern/pbvh_bmesh.c (+1414, -0) (View)

4 Modified Paths:

/source/blender/blenkernel/BKE_pbvh.h (+56, -5) (Diff)
/source/blender/blenkernel/CMakeLists.txt (+1, -0) (Diff)
/source/blender/blenkernel/intern/pbvh.c (+65, -16) (Diff)
/source/blender/blenkernel/intern/pbvh_intern.h (+46, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021