[Bf-blender-cvs] [f4c22ac] blender-v2.76a-release: Fix T46002: mathutils.geometry.intersect_line_line_2d doesn't operate on lines, but on line segments.

Bastien Montagne noreply at git.blender.org
Thu Oct 29 11:39:11 CET 2015


Commit: f4c22ac4b695cc8e9e118ac318ecec1e30038909
Author: Bastien Montagne
Date:   Tue Oct 13 09:59:42 2015 +0200
Branches: blender-v2.76a-release
https://developer.blender.org/rBf4c22ac4b695cc8e9e118ac318ecec1e30038909

Fix T46002: mathutils.geometry.intersect_line_line_2d doesn't operate on lines, but on line segments.

Ugly issue really, but at least doc now matches behavior of the function. :|

===================================================================

M	source/blender/python/mathutils/mathutils_geometry.c

===================================================================

diff --git a/source/blender/python/mathutils/mathutils_geometry.c b/source/blender/python/mathutils/mathutils_geometry.c
index 0224798..a4ca252 100644
--- a/source/blender/python/mathutils/mathutils_geometry.c
+++ b/source/blender/python/mathutils/mathutils_geometry.c
@@ -415,7 +415,9 @@ static PyObject *M_Geometry_volume_tetrahedron(PyObject *UNUSED(self), PyObject
 PyDoc_STRVAR(M_Geometry_intersect_line_line_2d_doc,
 ".. function:: intersect_line_line_2d(lineA_p1, lineA_p2, lineB_p1, lineB_p2)\n"
 "\n"
-"   Takes 2 lines (as 4 vectors) and returns a vector for their point of intersection or None.\n"
+"   Takes 2 segments (defined by 4 vectors) and returns a vector for their point of intersection or None.\n"
+"\n"
+"   .. warning:: Despite its name, this function works on segments, and not on lines..."
 "\n"
 "   :arg lineA_p1: First point of the first line\n"
 "   :type lineA_p1: :class:`mathutils.Vector`\n"




More information about the Bf-blender-cvs mailing list