Skip to content

Commit 8763f82

Browse files
committed
Add test for mesh(::Triangle)
1 parent 24d0ee5 commit 8763f82

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/runtests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,12 @@ end
489489
@test decompose(Point{2, Int}, poly_ext_int) == [pts_ext..., pts_int1..., pts_int2...]
490490
end
491491

492+
@testset "mesh" begin
493+
primitive = Triangle(Point2f0(0), Point2f0(1), Point2f0(1,0))
494+
m = GeometryBasics.mesh(primitive)
495+
@test length(faces(m)) == 1
496+
end
497+
492498
@testset "convert mesh + meta" begin
493499
m = uv_normal_mesh(Circle(Point2f0(0), 1f0))
494500
# for 2D primitives we dont actually calculate normals

0 commit comments

Comments
 (0)