Skip to content

Commit fa26264

Browse files
author
Nemanja Jovanovic
committed
Simplify RingVertex point type
1 parent 538e0b3 commit fa26264

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/clipping/weileratherton.jl

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ abstract type Exiting <: VertexType end
2828
# Data structure for clipping the polygons. Fields left and right are used depending on the
2929
# VertexType, as designated with the helper functions. The data structure forms a directed
3030
# graph with each element always pointing to two elements.
31-
mutable struct RingVertex{VT<:VertexType,M<:Manifold,C<:CRS}
32-
point::Point{M,C}
33-
left::RingVertex{<:VertexType,M,C}
34-
right::RingVertex{<:VertexType,M,C}
31+
mutable struct RingVertex{VT<:VertexType,P<:Point}
32+
point::P
33+
left::RingVertex{<:VertexType,P}
34+
right::RingVertex{<:VertexType,P}
3535

36-
function RingVertex{VT,M,C}(point) where {VT<:VertexType,M<:Manifold,C<:CRS}
36+
function RingVertex{VT,P}(point) where {VT<:VertexType,P<:Point}
3737
v = new(point)
3838
v.left = v
3939
v.right = v
4040
v
4141
end
4242
end
4343

44-
RingVertex{VT}(point::Point{M,C}) where {VT<:VertexType,M<:Manifold,C<:CRS} = RingVertex{VT,M,C}(point)
44+
RingVertex{VT}(point::P) where {VT<:VertexType,P<:Point} = RingVertex{VT,P}(point)
4545

4646
isnormal(::RingVertex{Normal}) = true
4747
isnormal(::RingVertex) = false

0 commit comments

Comments
 (0)