Skip to content

Commit 26a861a

Browse files
committed
fix Simplex <: AbstractSimplex <: Polytope
1 parent 113812f commit 26a861a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/basic_types.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ abstract type AbstractFace{N,T} <: StaticVector{N,T} end
1717
abstract type AbstractSimplexFace{N,T} <: AbstractFace{N,T} end
1818
abstract type AbstractNgonFace{N,T} <: AbstractFace{N,T} end
1919

20-
abstract type AbstractSimplex{Dim,N,T} <: StaticVector{Dim,T} end
20+
abstract type AbstractSimplex{Dim,T} <: Polytope{Dim,T} end
2121

2222
@propagate_inbounds function Base.getindex(points::AbstractVector{P}, face::F) where {P<: Point, F <: AbstractFace}
2323
return Polytope(P, F)(map(i-> points[i], face.data))
@@ -136,7 +136,7 @@ This is for a simpler implementation.
136136
It applies to infinite dimensions. The structure of this type is designed
137137
to allow embedding in higher-order spaces by parameterizing on `T`.
138138
"""
139-
struct Simplex{Dim,T<:Real,N} <: Polytope{Dim,T}
139+
struct Simplex{Dim,T<:Real,N} <: AbstractSimplex{Dim,T}
140140
points::NTuple{N,Point{Dim,T}}
141141
end
142142

0 commit comments

Comments
 (0)