Skip to content

Commit 4109645

Browse files
committed
derive Point eltype when dimension is given
1 parent 275a41c commit 4109645

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/interfaces.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ function decompose(::Type{Point}, primitive::AbstractGeometry{Dim,T}) where {Dim
180180
return collect_with_eltype(Point{Dim,T}, coordinates(primitive))
181181
end
182182

183+
function decompose(::Type{Point{Dim}}, primitive::AbstractGeometry{Dim,T}) where {Dim,T}
184+
return collect_with_eltype(Point{Dim,T}, coordinates(primitive))
185+
end
186+
183187
function decompose(::Type{PointT{T}}, primitive::AbstractGeometry{Dim}) where {Dim, T}
184188
return collect_with_eltype(Point{Dim,T}, coordinates(primitive))
185189
end

0 commit comments

Comments
 (0)