Skip to content

Commit 2a6d072

Browse files
Keep first index the same when reversing orientation
1 parent 1d4314a commit 2a6d072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/topologies/halfedge.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ function HalfEdgeTopology(elems::AbstractVector{<:Connectivity}; sort=true)
255255
halves = Vector{Tuple{HalfEdge,HalfEdge}}()
256256
visited = Set{Tuple{Int,Int}}()
257257
for (e, inds) in enumerate(adjelems)
258-
inds = REV_DIR[e] ? reverse(inds) : inds
258+
inds = REV_DIR[e] ? circshift!(reverse!(inds), 1) : inds
259259
n = length(inds)
260260
for i in eachindex(inds)
261261
vi = inds[i]

0 commit comments

Comments
 (0)