diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-07-22 08:34:19 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-07-22 08:34:19 (GMT) |
commit | d60feb90aa10916310bf086ea2c230b3492d6e08 (patch) | |
tree | fd17b2a3a5a4e1db4d311eb7ccdb9f71d7b1b993 | |
parent | a57f20efb741c80b69a215134585700288283956 (diff) |
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
-rw-r--r-- | dxflinextrude.cc | 17 |
1 files changed, 17 insertions, 0 deletions
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) |