Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-01-06 13:32:34 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-01-06 13:32:34 +0400
commit4848f9029a7cf70324888f18ccfcdea3fa50392b (patch)
tree4a7735e561efaa96240756c9c585e891315bc24f /source/blender/python/mathutils/mathutils_kdtree.h
parent90efa345c2b512c7dbc615b6210127070ff8b03f (diff)
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
Diffstat (limited to 'source/blender/python/mathutils/mathutils_kdtree.h')
-rw-r--r--source/blender/python/mathutils/mathutils_kdtree.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/source/blender/python/mathutils/mathutils_kdtree.h b/source/blender/python/mathutils/mathutils_kdtree.h
new file mode 100644
index 00000000000..84216617712
--- /dev/null
+++ b/source/blender/python/mathutils/mathutils_kdtree.h
@@ -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__ */