Skip to content

Commit 15eb932

Browse files
committed
remove triangle_mesh Tesselation deprecation warning
1 parent 6c7b407 commit 15eb932

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/meshes.jl

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ function mesh(polygon::AbstractVector{P}; pointtype=P, facetype=GLTriangleFace)
4141
return mesh(Polygon(polygon); pointtype=pointtype, facetype=facetype)
4242
end
4343

44-
# function triangle_mesh(primitive::Union{AbstractGeometry{N}, AbstractVector{<: Point{2}}})::TriangleMesh{N} where {N}
45-
# return mesh(primitive; pointtype=Point{N, Float32})
46-
# end
44+
function triangle_mesh(primitive::Union{AbstractGeometry{N}, AbstractVector{<: Point{N}}})::TriangleMesh{N} where {N}
45+
return mesh(primitive; pointtype=Point{N, Float32})
46+
end
4747

4848

4949
pointtype(x::Mesh) = eltype(decompose(Point, x))
@@ -58,14 +58,6 @@ function triangle_mesh(primitive::Mesh{N}) where {N}
5858
end
5959
end
6060

61-
function triangle_mesh(primitive::Union{AbstractGeometry{N}, AbstractVector{<: Point{N}}}; nvertices = nothing)::TriangleMesh{N} where {N}
62-
if nvertices !== nothing
63-
@warn("nvertices argument deprecated. Wrap primitive in `Tesselation(primitive, nvertices)`")
64-
primitive = Tesselation(primitive, nvertices)
65-
end
66-
return mesh(primitive; pointtype=Point{N,Float32}, facetype=GLTriangleFace)
67-
end
68-
6961
function uv_mesh(primitive::AbstractGeometry{N,T}) where {N,T}
7062
m = triangle_mesh(primitive)
7163
return MetaMesh(m, (uv=decompose_uv(primitive),))

0 commit comments

Comments
 (0)