@@ -41,9 +41,9 @@ function mesh(polygon::AbstractVector{P}; pointtype=P, facetype=GLTriangleFace)
4141 return mesh (Polygon (polygon); pointtype= pointtype, facetype= facetype)
4242end
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
4949pointtype (x:: Mesh ) = eltype (decompose (Point, x))
@@ -58,14 +58,6 @@ function triangle_mesh(primitive::Mesh{N}) where {N}
5858 end
5959end
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-
6961function 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