Fast and Robust Curve Intersections
by Douglas Schwarz
31 Jul 2006
(Updated 27 Jan 2010)
Computes intersection points of two curves.
|
Watch this File
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 02 Aug 2006 |
Based on comment from M MA I added code to handle difficult situations such as colinear line segments. Also, I updated the documentation. |
| 04 Aug 2006 |
Added screenshot. |
| 07 Aug 2006 |
Fixed a minor bug related to handling NaNs in the curves. |
| 09 Aug 2006 |
Forgot to reset warning state when no error occurred -- now fixed. |
| 01 Apr 2007 |
Fixed bug when more than one anomaly present in data. |
| 01 May 2007 |
Added robustness option at the expense of a little speed -- on by default, but can be turned off. |
| 25 Jun 2007 |
Fixed bug where parallel segments were incorrectly identified as overlapping. Increased speed of non-robust algorithm. Other internal changes. |
| 27 Aug 2007 |
Reverted to using \ instead of linsolve as it seems to be more accurate. |
| 18 Dec 2007 |
Added additional outputs which indicate in which segment pairs the intersections lie. |
| 26 Feb 2008 |
Added ability to find self-intersections of one curve. |
| 25 Jan 2010 |
Fixed bug identified by Rodrigo Portugal. No longer fails when there are no intersections and you need 4 outputs. |
| 27 Jan 2010 |
Fixed bug that my previous "bug fix" failed to fix. |
|
Contact us at files@mathworks.com