From 75fcb1cc6710efdb561b84c63c3edd73d4fadf00 Mon Sep 17 00:00:00 2001 From: Kevin-Mattheus-Moerman Date: Sat, 20 Apr 2024 12:12:40 +0100 Subject: [PATCH] Fixed error in testing --- examples/demo_vertexnormal.jl | 2 +- src/functions.jl | 6 +++--- test/runtests.jl | 11 ++++++++--- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/examples/demo_vertexnormal.jl b/examples/demo_vertexnormal.jl index 9cfd556..ee4b214 100644 --- a/examples/demo_vertexnormal.jl +++ b/examples/demo_vertexnormal.jl @@ -34,7 +34,7 @@ for q=1:1:4 M = load(fileName_mesh) # Obtain mesh faces and vertices - F = faces(M) + F = tofaces(faces(M)) V = topoints(coordinates(M)) F,V,_ = mergevertices(F,V) M = GeometryBasics.Mesh(V,F) diff --git a/src/functions.jl b/src/functions.jl index fa99ac4..345b85b 100644 --- a/src/functions.jl +++ b/src/functions.jl @@ -810,7 +810,7 @@ defined by `F`. The input `F` can either represent a vector of faces or a GeometryBasics mesh. """ function meshedges(F::Array{NgonFace{N,T},1}; unique_only=false) where N where T<:Integer - E = LineFace{T}[] + E = LineFace{Int64}[] for j1 in 1:N # Loop over each node/point for the current simplex if j1