summaryrefslogtreecommitdiff
path: root/src/export.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-08-05 00:11:20 (GMT)
committerMarius Kintel <marius@kintel.net>2011-08-05 00:11:20 (GMT)
commit80e526880a0b44361fe6793ac740a19e65df44b2 (patch)
treeb2b209f24e5e8d582ea52e0d3edccb011d3b578a /src/export.cc
parenta586a9650386abeb6588ee8216e9fb9659a8c56d (diff)
Started on getBoundingBox functionality, refactored some vector code as part of this initiative
Diffstat (limited to 'src/export.cc')
-rw-r--r--src/export.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/export.cc b/src/export.cc
index 1f9046e..c87e917 100644
--- a/src/export.cc
+++ b/src/export.cc
@@ -171,12 +171,12 @@ void export_dxf(CGAL_Nef_polyhedron *root_N, QTextStream &output, QProgressDialo
for (int i=0; i<dd.paths.size(); i++)
{
for (int j=1; j<dd.paths[i].points.size(); j++) {
- DxfData::Point *p1 = dd.paths[i].points[j-1];
- DxfData::Point *p2 = dd.paths[i].points[j];
- double x1 = p1->x;
- double y1 = p1->y;
- double x2 = p2->x;
- double y2 = p2->y;
+ const Vector2d &p1 = *dd.paths[i].points[j-1];
+ const Vector2d &p2 = *dd.paths[i].points[j];
+ double x1 = p1[0];
+ double y1 = p1[1];
+ double x2 = p2[0];
+ double y2 = p2[1];
output << " 0\n"
<< "LINE\n";
// Some importers (e.g. Inkscape) needs a layer to be specified
contact: Jan Huwald // Impressum