From b303f73f11b7fb19eae62a4a1ec27bc432104e5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 26 Apr 2017 17:02:20 +0200 Subject: [PATCH] Added boundary split test case --- src/Unittests/unittests_trimesh_split.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Unittests/unittests_trimesh_split.cc b/src/Unittests/unittests_trimesh_split.cc index ffc4019e..51efd9e6 100644 --- a/src/Unittests/unittests_trimesh_split.cc +++ b/src/Unittests/unittests_trimesh_split.cc @@ -100,13 +100,21 @@ TEST_F(OpenMeshSplitTriangleMesh, Split_Triangle_Mesh_1_4) { EXPECT_EQ(4u, mesh_.n_faces()); - // split face with new vertex + // split face in center (non-boundary case) mesh_.split(to_split); mesh_.garbage_collection(); EXPECT_EQ(10u, mesh_.n_faces()); + Mesh::FaceHandle boundary_split = mesh_.face_handle(0); + + // split face at boundary + mesh_.split(boundary_split); + + mesh_.garbage_collection(); + + EXPECT_EQ(15u, mesh_.n_faces()); }