Skip to content

Commit 34f40a2

Browse files
committed
add deprecation notice
1 parent b42131f commit 34f40a2

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/interfaces.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ texturecoordinates(primitive, nvertices=nothing) = nothing
6363
When generating a mesh from an abstract geometry, we can typically generate it
6464
at different levels of detail, i.e. with different amounts of vertices. The
6565
`Tessellation` wrapper allows you to specify this level of detail. When generating
66-
a mesh from a tesselated geometry, the added information will be passed to
66+
a mesh from a tessellated geometry, the added information will be passed to
6767
`coordinates`, `faces`, etc.
6868
6969
```julia
@@ -85,6 +85,8 @@ struct Tessellation{Dim,T,Primitive,NGrid} <: AbstractGeometry{Dim, T}
8585
nvertices::NTuple{NGrid,Int}
8686
end
8787

88+
Base.@deprecate_binding Tesselation Tessellation
89+
8890
function Tessellation(primitive::GeometryPrimitive{Dim,T},
8991
nvertices::NTuple{N,<:Integer}) where {Dim,T,N}
9092
return Tessellation{Dim,T,typeof(primitive),N}(primitive, Int.(nvertices))

test/runtests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,12 @@ end
310310
include("geointerface.jl")
311311
end
312312

313+
@testset "Deprecations" begin
314+
# https://github.com/JuliaLang/julia/issues/38780
315+
# @test_warn Tesselation(Rect2f(0, 0, 2, 2), 10)
316+
@test Tesselation(Rect2f(0, 0, 2, 2), 10) == Tessellation(Rect2f(0, 0, 2, 2), 10)
317+
end
318+
313319
include("polygons.jl")
314320

315321
using Aqua

0 commit comments

Comments
 (0)