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
{{ message }}
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.
It seems like the round-tripping from SimpleMesh to HomogenousMesh is adding ambiguity. The following fixes the type instability, but breaks a call to HomogenousMesh:
function (::Type{M})(
vertices::AbstractVector{Point{3, VT}}, faces::AbstractVector{FT}
) where {M <: HMesh, VT, FT <: Face}
NV = vertextype(M)
NF = facetype(M)
M(convert(Vector{NV}, vertices), convert(Vector{NF}, faces))
end
GLNormalMesh(vertices, faces) is not type stable.
How to reproduce:
(tested in GeometryTypes v0.7.5)
The text was updated successfully, but these errors were encountered: