@@ -73,15 +73,25 @@ function connect(points::AbstractVector{Point},
7373end
7474
7575function connect (points:: AbstractVector{T} , :: Type{<:Point{N}} , skip:: Int = N) where {T <: Real ,N}
76+ return connect (points, Point{N, T}, skip)
77+ end
78+ function connect (points:: AbstractVector{_T} , :: Type{<:Point{N, T}} , skip:: Int = N) where {T <: Real , N, _T <: Real }
7679 return map (Point{N,T}, TupleView {N,skip} (points))
7780end
7881
7982function connect (indices:: AbstractVector{T} , P:: Type{<:AbstractFace{N}} ,
8083 skip:: Int = N) where {T <: Integer , N}
84+ return connect (indices, Face (P, T), skip)
85+ end
86+ function connect (indices:: AbstractVector{_T} , P:: Type{<:AbstractFace{N, T}} ,
87+ skip:: Int = N) where {T <: Integer , N, _T <: Integer }
8188 return collect (reinterpret (Face (P, T), TupleView {N, skip} (indices)))
8289end
8390
84- function connect (points:: AbstractMatrix{T} , P:: Type{<:Point{N}} ) where {T <: Real , N}
91+ function connect (points:: AbstractMatrix{T} , :: Type{<:Point{N}} ) where {T <: Real , N}
92+ return connect (points, Point{N, T})
93+ end
94+ function connect (points:: AbstractMatrix{_T} , P:: Type{Point{N, T}} ) where {T <: Real , N, _T <: Real }
8595 return if size (points, 1 ) === N
8696 return reinterpret (Point{N,T}, points)
8797 elseif size (points, 2 ) === N
0 commit comments