summaryrefslogtreecommitdiff
path: root/src/CGAL_Nef_polyhedron_DxfData.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-09-03 20:44:41 (GMT)
committerMarius Kintel <marius@kintel.net>2011-09-03 20:44:41 (GMT)
commit6096f2734a9a2f2c789f2e948c021def6b41f85b (patch)
treeed87e8732c45c19413de488ccd16fafe049111b2 /src/CGAL_Nef_polyhedron_DxfData.cc
parent946605234c7cf35cadfe9bde5531ebe6655f1b42 (diff)
De-Qt-ification continues, almost done with DxfData
Diffstat (limited to 'src/CGAL_Nef_polyhedron_DxfData.cc')
-rw-r--r--src/CGAL_Nef_polyhedron_DxfData.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/CGAL_Nef_polyhedron_DxfData.cc b/src/CGAL_Nef_polyhedron_DxfData.cc
index 4bfb205..fe58636 100644
--- a/src/CGAL_Nef_polyhedron_DxfData.cc
+++ b/src/CGAL_Nef_polyhedron_DxfData.cc
@@ -55,21 +55,21 @@ DxfData *CGAL_Nef_polyhedron::convertToDxfData() const
this_point = grid.align(x, y);
} else {
this_point = grid.align(x, y) = dxfdata->points.size();
- dxfdata->points.append(Vector2d(x, y));
+ dxfdata->points.push_back(Vector2d(x, y));
}
if (first_point < 0) {
- dxfdata->paths.append(DxfData::Path());
+ dxfdata->paths.push_back(DxfData::Path());
first_point = this_point;
}
if (this_point != last_point) {
- dxfdata->paths.last().points.append(&dxfdata->points[this_point]);
+ dxfdata->paths.back().indices.push_back(this_point);
last_point = this_point;
}
}
}
if (first_point >= 0) {
- dxfdata->paths.last().is_closed = 1;
- dxfdata->paths.last().points.append(&dxfdata->points[first_point]);
+ dxfdata->paths.back().is_closed = 1;
+ dxfdata->paths.back().indices.push_back(first_point);
}
}
contact: Jan Huwald // Impressum