System Information
Ubuntu 15.04 x86-64, Intel HD 4000 GPU.
gcc (Ubuntu 4.9.2-10ubuntu13) 4.9.2
Blender Version
Broken: 2.72b (Ubuntu package), 2.74rc1 (built from git, 4aa5109)
Short description of error
For some values where the two segments are well separated but nearly colinear, the function will claim that they intersect. However because the function operates on segments (not infinite lines), there should be no intersection.
Exact steps for others to reproduce the error
- Open the Python console in Blender.
- Type:
import mathutils.geometry
geometry.intersect_line_line_2d(Vector((-0.11303041130304337, 0.5093119144439697)), Vector((-0.015013276599347591, 0.6790825724601746)),
Vector((0.08300385624170303, 0.8488532304763794)), Vector((0.18102099001407623, 1.0186238288879395)))- Result will be: Vector((-0.015013276599347591, 0.6790825724601746))
- Expected result: None. See attached file for illustration of the segments in coordinate system.
