Blender Git Loki

Git Commits -> Revision 067f0d4

Revision 067f0d4 by Lukas Toenne (mathutils_bvhtree)
January 3, 2015, 10:05 (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: 067f0d48e3e0c8883a03cccd020093701c629a2c
Parent Commit: 9c19b68
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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021