Add unit test for split()

This commit is contained in:
Alessandro Ranellucci 2013-09-09 23:09:56 +02:00
parent 3919ba83d8
commit 28b043e9a9
5 changed files with 29 additions and 7 deletions

View file

@ -41,6 +41,8 @@ TriangleMesh::stats()
SV*
TriangleMesh::vertices()
CODE:
if (!THIS->repaired) CONFESS("vertices() requires Repair()");
if (THIS->stl.v_shared == NULL)
stl_generate_shared_vertices(&(THIS->stl));
@ -63,6 +65,8 @@ TriangleMesh::vertices()
SV*
TriangleMesh::facets()
CODE:
if (!THIS->repaired) CONFESS("facets() requires Repair()");
if (THIS->stl.v_shared == NULL)
stl_generate_shared_vertices(&(THIS->stl));