From 2e55ba0bc498a1f2b8d5ed55c7b877da7a85c785 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Mon, 6 Aug 2007 07:49:54 +0000 Subject: (Un-)Snapping of VPs by Shift-dragging; this makes it possible to separate perspectives and thus create new ones interactively (bzr r3392) --- src/axis-manip.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/axis-manip.cpp') diff --git a/src/axis-manip.cpp b/src/axis-manip.cpp index 094da7dde..c2edbfb89 100644 --- a/src/axis-manip.cpp +++ b/src/axis-manip.cpp @@ -19,6 +19,13 @@ Axis axes[3] = { X, Y, Z }; Axis planes[3] = { XY, XZ, YZ }; FrontOrRear face_positions [2] = { FRONT, REAR }; +std::pair +get_remaining_axes (Axis axis) { + if (!is_single_axis_direction (axis)) return std::make_pair (NONE, NONE); + Axis plane = orth_plane (axis); + return std::make_pair (extract_first_axis_direction (plane), extract_second_axis_direction (plane)); +} + } // namespace Box3D /* -- cgit v1.2.3