Skip to content

Commit 7ea0676

Browse files
committed
linear -> planar
1 parent b07808f commit 7ea0676

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/transformations/segmentize.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@ This is useful for plotting geometries with a limited number of vertices, or for
169169
Returns a geometry of similar type to the input geometry, but resampled.
170170
"""
171171
function segmentize(geom; max_distance, threaded::Union{Bool, BoolsAsTypes} = _False())
172-
return segmentize(Linear(), geom; threaded = _booltype(threaded))
172+
return segmentize(Planar(), geom; threaded = _booltype(threaded))
173173
end
174174

175175
# allow three-arg method as well, just in case
176-
segmentize(geom, max_distance::Real; threaded = _False()) = segmentize(Linear(), geom, max_distance; threaded)
177-
segmentize(method::Manifold, geom, max_distance::Real; threaded = _False()) = segmentize(Linear(), geom; max_distance, threaded)
176+
segmentize(geom, max_distance::Real; threaded = _False()) = segmentize(Planar(), geom, max_distance; threaded)
177+
segmentize(method::Manifold, geom, max_distance::Real; threaded = _False()) = segmentize(Planar(), geom; max_distance, threaded)
178178

179179
# generic implementation
180180
function segmentize(method::Manifold, geom; max_distance, threaded::Union{Bool, BoolsAsTypes} = _False())
@@ -184,9 +184,9 @@ function segmentize(method::Manifold, geom; max_distance, threaded::Union{Bool,
184184
end
185185

186186
function segmentize(method::SegmentizeMethod, geom; threaded::Union{Bool, BoolsAsTypes} = _False())
187-
@warn "`segmentize(method::$(typeof(method)), geom) is deprecated; use `segmentize($(method isa LinearSegments ? "Linear()" : "Geodesic()"), geom; max_distance, threaded) instead!" maxlog=3
187+
@warn "`segmentize(method::$(typeof(method)), geom) is deprecated; use `segmentize($(method isa LinearSegments ? "Planar()" : "Geodesic()"), geom; max_distance, threaded) instead!" maxlog=3
188188
@assert method.max_distance > 0 "`max_distance` should be positive and nonzero! Found $(method.max_distance)."
189-
new_method = method isa LinearSegments ? Linear() : Geodesic()
189+
new_method = method isa LinearSegments ? Planar() : Geodesic()
190190
segmentize(new_method, geom; max_distance = method.max_distance, threaded)
191191
end
192192

0 commit comments

Comments
 (0)