Skip to content

Commit 635150e

Browse files
committed
bring back connect
1 parent 9e9bf34 commit 635150e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/viewtypes.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,7 @@ function connect(points::AbstractMatrix{T}, P::Type{<:Point{N}}) where {T <: Rea
9494
error("Dim 1 or 2 must be equal to the point dimension!")
9595
end
9696
end
97+
98+
function connect(elements::AbstractVector, faces::AbstractVector{<: AbstractFace})
99+
return [elements[i] for f in faces for i in f]
100+
end

0 commit comments

Comments
 (0)