You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function Base.view(trian::Geometry.AppendedTriangulation,ids::AbstractArray)
Ti =eltype(ids)
ids1 = Ti[]
ids2 = Ti[]
n1 =num_cells(trian.a)
for i in ids
if i <= n1
push!(ids1,i)
elsepush!(ids2,i-n1)
endend
trian1 =view(trian.a,ids1)
trian2 =view(trian.b,ids2)
num_cells(trian1) ==0? trian2 :lazy_append(trian1,trian2)
end
Found a bug when computing the view of an appended triangulation (
SubCellTriangulation
+BodyFittedTriangulation
).The text was updated successfully, but these errors were encountered: