Patch D133: Python wrapper for BLI_kdtree (adds mathutils.kdtree)

Originally by Dan Eicher, with my own fixes and adjustments (see patch page for details).

For details there are unit tests and api example usage.

	doc/python_api/sphinx-in-tmp/menu_id.png
This commit is contained in:
2014-01-06 20:32:34 +11:00
parent 90efa345c2
commit 4848f9029a
9 changed files with 618 additions and 2 deletions

View File

@@ -0,0 +1,33 @@
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* ***** END GPL LICENSE BLOCK *****
*/
/** \file blender/python/mathutils/mathutils_kdtree.h
* \ingroup mathutils
*/
#ifndef __MATHUTILS_KDTREE_H__
#define __MATHUTILS_KDTREE_H__
PyObject *PyInit_mathutils_kdtree(void);
extern PyTypeObject PyKDTree_Type;
#endif /* __MATHUTILS_KDTREE_H__ */