summaryrefslogtreecommitdiff
path: root/src/nef2dxf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nef2dxf.cc')
-rw-r--r--src/nef2dxf.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nef2dxf.cc b/src/nef2dxf.cc
index 320d6b8..cbefa9c 100644
--- a/src/nef2dxf.cc
+++ b/src/nef2dxf.cc
@@ -32,6 +32,7 @@
DxfData::DxfData(const struct CGAL_Nef_polyhedron &N)
{
+ assert(N.dim == 2);
Grid2d<int> grid(GRID_COARSE);
typedef CGAL_Nef_polyhedron2::Explorer Explorer;
@@ -52,7 +53,7 @@ DxfData::DxfData(const struct CGAL_Nef_polyhedron &N)
this_point = grid.align(x, y);
} else {
this_point = grid.align(x, y) = points.size();
- points.append(Point(x, y));
+ points.append(Vector2d(x, y));
}
if (first_point < 0) {
paths.append(Path());
contact: Jan Huwald // Impressum