Skip to content

Commit

Permalink
add assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Aug 14, 2024
1 parent 403ec19 commit 30fc150
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Nef_3/test/Nef_3/issue_6423.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ int main()

NefPolyhedron nefPoly(surfaceMesh);
std::cout << "NefPolyhedron, number_of_faces: " << nefPoly.number_of_facets() << std::endl;
std::cout << nefPoly << std::endl;
SurfaceMesh convertedSurfaceMesh;
CGAL::convert_nef_polyhedron_to_polygon_mesh(nefPoly, convertedSurfaceMesh, true);
std::cout << "After conversion, number_of_faces: " << convertedSurfaceMesh.number_of_faces() << std::endl;
std::cout << convertedSurfaceMesh << std::endl;
std::ofstream("out.off") << convertedSurfaceMesh;
assert(vertices(convertedSurfaceMesh).size()==10);
assert(faces(convertedSurfaceMesh).size()==6);
return EXIT_SUCCESS;
}

0 comments on commit 30fc150

Please sign in to comment.