Skip to content

Commit

Permalink
Extended testing depth for normalplot
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin-Mattheus-Moerman committed Apr 5, 2024
1 parent b6e38c5 commit 41fc2e9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2651,6 +2651,22 @@ end
Mp = hp1[1].val
@test typeof(hp1) == Wireframe{Tuple{GeometryBasics.Mesh{3, Float64, Line{3, Float64}, SimpleFaceView{3, Float64, 2, Int64, Point3{Float64}, LineFace{Int64}}}}}
@test length(faces(Mp)) == length(V)

fileName_mesh = joinpath(comododir(),"assets","obj","spot_control_mesh.obj")
M = load(fileName_mesh)
F = faces(M)
V = coordinates(M)
hp1 = normalplot(ax,M; type_flag=:vertex, color=:black,linewidth=3,scaleval=nothing)
Mp = hp1[1].val
@test typeof(hp1) == Wireframe{Tuple{GeometryBasics.Mesh{3, Float64, Line{3, Float64}, SimpleFaceView{3, Float64, 2, Int64, Point3{Float64}, LineFace{Int64}}}}}
@test length(faces(Mp)) == length(V)

# Not supported yet
# hp1 = normalplot(ax,F,V; type_flag=:vertex, color=:black,linewidth=3,scaleval=nothing)
# Mp = hp1[1].val
# @test typeof(hp1) == Wireframe{Tuple{GeometryBasics.Mesh{3, Float64, Line{3, Float64}, SimpleFaceView{3, Float64, 2, Int64, Point3{Float64}, LineFace{Int64}}}}}
# @test length(faces(Mp)) == length(V)

end
end

Expand Down

0 comments on commit 41fc2e9

Please sign in to comment.