浏览代码

Vlib: add Bentley-Ottmann algorithm to find line intersections

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@62045 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 10 年之前
父节点
当前提交
e395e4eb26
共有 2 个文件被更改,包括 1429 次插入0 次删除
  1. 7 0
      include/defs/vector.h
  2. 1422 0
      lib/vector/Vlib/intersect2.c

+ 7 - 0
include/defs/vector.h

@@ -439,9 +439,16 @@ int Vect_line_intersection(struct line_pnts *, struct line_pnts *,
                            struct bound_box *, struct bound_box *,
                            struct line_pnts ***, struct line_pnts ***, int *,
                            int *, int);
+int Vect_line_intersection2(struct line_pnts *, struct line_pnts *,
+                            struct bound_box *, struct bound_box *,
+                            struct line_pnts ***, struct line_pnts ***, int *,
+                            int *, int);
 int Vect_line_check_intersection(struct line_pnts *, struct line_pnts *, int);
+int Vect_line_check_intersection2(struct line_pnts *, struct line_pnts *, int);
 int Vect_line_get_intersections(struct line_pnts *, struct line_pnts *,
                                 struct line_pnts *, int);
+int Vect_line_get_intersections2(struct line_pnts *, struct line_pnts *,
+                                 struct line_pnts *, int);
 char *Vect_subst_var(const char *, const struct Map_info *);
 
 /* Custom spatial index */

文件差异内容过多而无法显示
+ 1422 - 0
lib/vector/Vlib/intersect2.c