29
29
(4 , 2 ) => 3 , (2 , 3 ) => 4 , (3 , 4 ) => 2 ,
30
30
(4 , 5 ) => 2 , (5 , 2 ) => 4 , (2 , 4 ) => 5 ,
31
31
(4 , 6 ) => 5 , (6 , 5 ) => 4 , (5 , 4 ) => 6 ,
32
- (((1 , 5 ), (5 , 6 ), (6 , 4 ), (4 , 3 ), (3 , 1 )) .=> DT. BoundaryIndex). .. ,
33
- (((1 , - 1 ), (3 , - 1 ), (- 1 , 2 ), (2 , - 2 ), (2 , 6 ), (- 3 , 2 ), (3 , 6 )) .=> DT. DefaultAdjacentValue). ..
32
+ (((1 , 5 ), (5 , 6 ), (6 , 4 ), (4 , 3 ), (3 , 1 )) .=> DT. BoundaryIndex). ..
34
33
)
35
34
)
36
35
true_adj2v = Dict {IntegerType,EdgesType} (
93
92
)
94
93
true_adj = DefaultDict (DT. DefaultAdjacentValue,
95
94
Dict {EdgeType,IntegerType} (
96
- (((- 2 , 1 ), (6 , - 2 ), (8 , - 1 ), (6 , 5 ), (3 , 9 ),
97
- (3 , - 1 ), (- 1 , 6 ), (9 , 6 ), (- 3 , 8 ), (5 , 3 ),
98
- (8 , 6 ), (8 , - 2 ), (- 3 , 5 ), (8 , 5 )) .=> DT. DefaultAdjacentValue). .. ,
99
95
(5 , 10 ) => 2 , (10 , 2 ) => 5 , (2 , 5 ) => 10 ,
100
96
(5 , 9 ) => 7 , (9 , 7 ) => 5 , (7 , 5 ) => 9 ,
101
97
(3 , 6 ) => 2 , (6 , 2 ) => 3 , (2 , 3 ) => 6 ,
722
718
T, adj, adj2v, dg, HG = DT. triangulate_berg (cells)
723
719
@test DT. validate_triangulation (T, adj, adj2v, dg, cells)
724
720
end
721
+ end
722
+
723
+ @testset " Edges all exist" begin
724
+ pts = rand (2 , 500 )
725
+ T, adj, adj2v, DG = triangulate_bowyer (pts)
726
+ for e in edges (adj)
727
+ @test e ∈ edges (DG) || reverse (e) ∈ edges (DG)
728
+ end
729
+ for e in edges (DG)
730
+ if DT. BoundaryIndex ∉ e
731
+ @test e ∈ edges (adj)
732
+ end
733
+ end
725
734
end
0 commit comments