From 667a24e083df3651723b6d78ed8058366a772e21 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Wed, 4 Jul 2007 10:26:36 +0000 Subject: New/updated 3D box auxiliary/convenience functions (e.g., allow (un)constrained movement of corners, too; determine midpoints of edges) (bzr r3183) --- src/perspective-line.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/perspective-line.cpp') diff --git a/src/perspective-line.cpp b/src/perspective-line.cpp index 158ddd47b..e5596cc1b 100644 --- a/src/perspective-line.cpp +++ b/src/perspective-line.cpp @@ -19,6 +19,7 @@ PerspectiveLine::PerspectiveLine (NR::Point const &pt, Box3D::Axis const axis, P Line (pt, *(perspective->get_vanishing_point(axis)), true) { g_assert (perspective != NULL); + g_assert (Box3D::is_single_axis_direction (axis)); if (perspective->get_vanishing_point(axis)->state == VP_INFINITE) { this->set_direction(perspective->get_vanishing_point(axis)->v_dir); -- cgit v1.2.3