Blender Git Commit Log

Git Commits -> Revision 8e6e0af

Revision 8e6e0af by Lukas Toenne
December 28, 2014, 14:26 (GMT)
Splitting the BVHTree python type into two distinct subclasses for
DerivedMesh and BMesh support.

This avoids messy code due to mixed data in the same py type. And makes
it clear at any point what kind of data the BVHTree instance represents.

Both types are based on the common BVHTree type, which currently does
not have any functionality of its own. Eventually it could implement
common BVH functions (find-nearest and ray casting) as well as return
read-only info about the size and type of BVH data.

Note: While the BVH functions already use callbacks for providing a
common interface in C, using this for python types would be redundant.
It also still requires specialized data for some details of testing
elements.

Commit Details:

Full Hash: 8e6e0af141399cc31cc159d1ca90af889d9bb6f5
Parent Commit: 2eb051e
Lines Changed: +314, -175

2 Modified Paths:

/source/blender/python/mathutils/mathutils_bvhtree.c (+312, -175) (Diff)
/source/blender/python/mathutils/mathutils_bvhtree.h (+2, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021