Skip to content

Commit

Permalink
change Linear to Planar
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed Nov 11, 2024
1 parent b281ee6 commit a38f74a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/transformations/segmentize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,18 @@ using ..TestHelpers
end

lr = GI.LinearRing([(0, 0), (1, 0), (1, 1), (0, 1), (0, 0)])
@testset_implementations "LinearSegments" begin
@testset_implementations "Planar" begin
ct = GO.centroid($lr)
ar = GO.area($lr)
for max_distance in exp10.(LinRange(log10(0.01), log10(1), 10))
segmentized = GO.segmentize(GO.Linear(), $lr; max_distance)
segmentized = GO.segmentize(GO.Planar(), $lr; max_distance)
@test all(GO.centroid(segmentized) .≈ ct)
@test GO.area(segmentized) ar
end
end

lr = GI.LinearRing([(0, 0), (1, 0), (1, 1), (0, 1), (0, 0)])
@testset_implementations "GeodesicSegments" begin
@testset_implementations "Geodesic" begin
for max_distance in exp10.(LinRange(log10(0.01), log10(1), 10)) .* 900
@test_nowarn segmentized = GO.segmentize(GO.Geodesic(), $lr; max_distance)
end
Expand Down

0 comments on commit a38f74a

Please sign in to comment.