Reliable line segment intersection testing

被引:13
作者
Gavrilova, M [1 ]
Rokne, JG [1 ]
机构
[1] Univ Calgary, Dept Comp Sci, Calgary, AB T2N 1N4, Canada
关键词
intersection testing for line segments; floating-point arithmetic; exact computation; interval arithmetic; interval filter;
D O I
10.1016/S0010-4485(00)00050-6
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The main result of this paper is a new algorithm that tests whether two line segments in the plane intersect. If the segments are defined using the coordinates of the endpoints in single-precision floating-point arithmetic, then the result of the test is exact. The equations of the segments are given in parametric form using the endpoint coordinates, and an equation whose solution would provide the coordinates of the intersection is developed. Interval arithmetic is then used to compute an inclusion of the coordinates of the intersection point. This inclusion is often sufficient to decide the intersection test. When it is not, a method for determining the exact sign of a sum is applied to the equations at an earlier stage of the solution process. Experimental results are presented that show that the number of intersections that cannot be resolved using interval tools is Fairly large in close to degenerate configurations of the segments and that the algorithm is significantly faster than an algorithm implemented using exact arithmetic. (C) 2000 Elsevier Science Ltd. All rights reserved.
引用
收藏
页码:737 / 745
页数:9
相关论文
共 14 条
[1]  
DOUGLAS D, 1990, IT MAKES ME SO CROSS, P303
[2]   Static analysis yields efficient exact integer arithmetic for computational geometry [J].
Fortune, S ;
VanWyk, CJ .
ACM TRANSACTIONS ON GRAPHICS, 1996, 15 (03) :223-248
[3]  
FORTUNE S, 1993, P 9 ANN ACM S COMP G, P163
[4]  
GREENE DH, 1986, P 27 ANN IEEE S FDN, P143, DOI DOI 10.1109/SFCS.1986.19
[5]  
Hobby J. D., 1996, Proceedings. Fifth Annual Symposium on Document Analysis and Information Retrieval, P233
[6]   THE PROBLEMS OF ACCURACY AND ROBUSTNESS IN GEOMETRIC COMPUTATION [J].
HOFFMANN, CM .
COMPUTER, 1989, 22 (03) :31-&
[7]  
JOU E, 1991, P 10 WORK C BERL SPR, P265
[8]   AN EFFICIENT AND NUMERICALLY CORRECT ALGORITHM FOR THE 2D CONVEX-HULL PROBLEM [J].
KAO, TC ;
KNOTT, GD .
BIT, 1990, 30 (02) :311-331
[9]   EFFICIENT DELAUNAY TRIANGULATION USING RATIONAL ARITHMETIC [J].
KARASICK, M ;
LIEBER, D ;
NACKMAN, LR .
ACM TRANSACTIONS ON GRAPHICS, 1991, 10 (01) :71-91
[10]  
KNOTT G, 1987, CARTR306 U MARYL DEP