diff options
Diffstat (limited to 'src/CGAL_Nef_polyhedron_DxfData.cc')
-rw-r--r-- | src/CGAL_Nef_polyhedron_DxfData.cc | 10 |
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); } } |