From d60feb90aa10916310bf086ea2c230b3492d6e08 Mon Sep 17 00:00:00 2001 From: clifford Date: Wed, 22 Jul 2009 08:34:19 +0000 Subject: Clifford Wolf: Added warning messages for open paths to dxflinextrude.cc git-svn-id: http://svn.clifford.at/openscad/trunk@65 b57f626f-c46c-0410-a088-ec61d464b74c diff --git a/dxflinextrude.cc b/dxflinextrude.cc index 76261cb..8afbcf2 100644 --- a/dxflinextrude.cc +++ b/dxflinextrude.cc @@ -142,6 +142,23 @@ PolySet *DxfLinearExtrudeNode::render_polyset(render_mode_e) const h2 = height; } + bool first_open_path = true; + for (int i = 0; i < dxf.paths.count(); i++) + { + if (dxf.paths[i].is_closed) + continue; + if (first_open_path) { + PRINTF("WARING: Open paths in dxf_liniear_extrude(file = \"%s\", layer = \"%s\"):", + filename.toAscii().data(), layername.toAscii().data()); + first_open_path = false; + } + PRINTF(" %9.5f %10.5f ... %10.5f %10.5f", + dxf.paths[i].points.first()->x / scale + origin_x, + dxf.paths[i].points.first()->y / scale + origin_y, + dxf.paths[i].points.last()->x / scale + origin_x, + dxf.paths[i].points.last()->y / scale + origin_y); + } + for (int i = 0; i < dxf.paths.count(); i++) { if (!dxf.paths[i].is_closed) -- cgit v0.10.1