@@ -41,9 +41,9 @@ function mesh(polygon::AbstractVector{P}; pointtype=P, facetype=GLTriangleFace)
41
41
return mesh (Polygon (polygon); pointtype= pointtype, facetype= facetype)
42
42
end
43
43
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
47
47
48
48
49
49
pointtype (x:: Mesh ) = eltype (decompose (Point, x))
@@ -58,14 +58,6 @@ function triangle_mesh(primitive::Mesh{N}) where {N}
58
58
end
59
59
end
60
60
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
-
69
61
function uv_mesh (primitive:: AbstractGeometry{N,T} ) where {N,T}
70
62
m = triangle_mesh (primitive)
71
63
return MetaMesh (m, (uv= decompose_uv (primitive),))
0 commit comments