index b2e4d23402666a52c3ed27909a56024183f8a130..e5596cc1b5704a09d024ea58802cccb75a8b54c5 100644 (file)
--- a/src/perspective-line.cpp
+++ b/src/perspective-line.cpp
namespace Box3D {
-PerspectiveLine::PerspectiveLine (NR::Point const &pt, PerspDir const axis, Perspective3D *perspective) :
+PerspectiveLine::PerspectiveLine (NR::Point const &pt, Box3D::Axis const axis, Perspective3D *perspective) :
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);