From b64139788c0679b572c68045d28a4933dcc44d36 Mon Sep 17 00:00:00 2001 From: don bright Date: Mon, 3 Dec 2012 08:52:21 +0100 Subject: fix tabs in svg.cc diff --git a/src/svg.cc b/src/svg.cc index e5130b0..ff13332 100644 --- a/src/svg.cc +++ b/src/svg.cc @@ -96,7 +96,7 @@ std::string dump_cgal_nef_polyhedron2_face_svg( bool mark, CGAL_Iso_rectangle_2e bbox ) { - std::stringstream out; + std::stringstream out; CGAL_For_all(c1, c2) { if ( explorer.is_standard( explorer.target(c1) ) ) { CGAL_Point_2e source = explorer.point( explorer.source( c1 ) ); @@ -106,7 +106,7 @@ std::string dump_cgal_nef_polyhedron2_face_svg( double mod=0; if (color=="green") mod=10; out << " \n"; - out << " \n"; out << svg_border() << "\n" << svg_axes() << "\n"; svg_cursor_py += svg_px_height; for ( i = explorer.faces_begin(); i!= explorer.faces_end(); ++i ) { - out << " \n"; - CGAL_Nef_polyhedron2::Explorer::Halfedge_around_face_const_circulator c1 - = explorer.face_cycle( i ), c2 ( c1 ); - out << dump_cgal_nef_polyhedron2_face_svg( c1, c2, explorer, "red", i->mark(), bbox ); - - CGAL_Nef_polyhedron2::Explorer::Hole_const_iterator j; - for ( j = explorer.holes_begin( i ); j!= explorer.holes_end( i ); ++j ) { - out << " \n"; - CGAL_Nef_polyhedron2::Explorer::Halfedge_around_face_const_circulator c3( j ), c4 ( c3 ); - out << dump_cgal_nef_polyhedron2_face_svg( c3, c4, explorer, "green", j->mark(), bbox ); - out << " \n"; - } - out << " \n"; - } - out << ""; + out << " \n"; + CGAL_Nef_polyhedron2::Explorer::Halfedge_around_face_const_circulator c1 + = explorer.face_cycle( i ), c2 ( c1 ); + out << dump_cgal_nef_polyhedron2_face_svg( c1, c2, explorer, "red", i->mark(), bbox ); + + CGAL_Nef_polyhedron2::Explorer::Hole_const_iterator j; + for ( j = explorer.holes_begin( i ); j!= explorer.holes_end( i ); ++j ) { + out << " \n"; + CGAL_Nef_polyhedron2::Explorer::Halfedge_around_face_const_circulator c3( j ), c4 ( c3 ); + out << dump_cgal_nef_polyhedron2_face_svg( c3, c4, explorer, "green", j->mark(), bbox ); + out << " \n"; + } + out << " \n"; + } + out << ""; std::string tmp = out.str(); boost::replace_all( tmp, "'", "\"" ); return tmp; @@ -219,29 +219,29 @@ public: std::string dump_svg( const CGAL_Nef_polyhedron3 &N ) { - std::stringstream out; + std::stringstream out; out << svg_header() << "\n" << svg_border() << "\n" << svg_axes() << "\n"; out << "\n"; - CGAL_Nef_polyhedron3::Volume_const_iterator c; - CGAL_forall_volumes(c,N) { - out << " \n"; - out << " \n"; - CGAL_Nef_polyhedron3::Shell_entry_const_iterator it; - CGAL_forall_shells_of(it,c) { - out << " \n"; - NefPoly3_dumper_svg dumper_svg(N); - N.visit_shell_objects(CGAL_Nef_polyhedron3::SFace_const_handle(it), dumper_svg ); + CGAL_Nef_polyhedron3::Volume_const_iterator c; + CGAL_forall_volumes(c,N) { + out << " \n"; + out << " \n"; + CGAL_Nef_polyhedron3::Shell_entry_const_iterator it; + CGAL_forall_shells_of(it,c) { + out << " \n"; + NefPoly3_dumper_svg dumper_svg(N); + N.visit_shell_objects(CGAL_Nef_polyhedron3::SFace_const_handle(it), dumper_svg ); out << dumper_svg.out.str(); - out << " \n"; - } - out << " \n"; - } - out << "\n"; + out << " \n"; + } + out << " \n"; + } + out << "\n"; out << ""; std::string tmp = out.str(); boost::replace_all( tmp, "'", "\"" ); - return tmp; + return tmp; } } // namespace -- cgit v0.10.1