From 067b134c6502046a2a63a6953fca416706f420ca Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Wed, 4 Mar 2015 12:03:35 +0100 Subject: [PATCH] Fix the output of a c3t3 to a polygon soup The stream iostate must be cleared before it can be reused. --- .../demo/Polyhedron/Polyhedron_demo_mesh_3_plugin_cgal_code.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Polyhedron/demo/Polyhedron/Polyhedron_demo_mesh_3_plugin_cgal_code.cpp b/Polyhedron/demo/Polyhedron/Polyhedron_demo_mesh_3_plugin_cgal_code.cpp index f3c9c76b1f4..30d2edb7d1b 100644 --- a/Polyhedron/demo/Polyhedron/Polyhedron_demo_mesh_3_plugin_cgal_code.cpp +++ b/Polyhedron/demo/Polyhedron/Polyhedron_demo_mesh_3_plugin_cgal_code.cpp @@ -288,6 +288,7 @@ public slots: if(!item->load(off_sstream)) { delete item; + off_sstream.clear(); off_sstream.str(backup); // Try to read .off in a polygon soup