From 59e792a6ebbacb1ddaba1d9825772a75805cc6ab Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Sun, 26 Aug 2007 17:56:46 +0000 Subject: Various small cleanups (bzr r3587) --- src/box3d.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/box3d.cpp') diff --git a/src/box3d.cpp b/src/box3d.cpp index 0f672aab2..8df5c3b52 100644 --- a/src/box3d.cpp +++ b/src/box3d.cpp @@ -439,7 +439,7 @@ sp_3dbox_corner_angle_to_VP (SP3DBox *box, Box3D::Axis axis, guint extreme_corne bool sp_3dbox_recompute_z_orders (SP3DBox *box) { - guint new_z_orders[6]; + gint new_z_orders[6]; // TODO: Determine the front corner depending on the distance from VPs and/or the user presets guint front_corner = sp_3dbox_get_front_corner_id (box); @@ -636,13 +636,9 @@ static void sp_3dbox_corner_configuration (SP3DBox *box, std::vector &on_h /* returns true if there was a change in the z-orders (which triggers an update of the repr) */ static bool sp_3dbox_recompute_z_orders_by_corner_configuration (SP3DBox *box) { - guint new_z_orders[6]; + gint new_z_orders[6]; Box3D::Axis front_rear_axis = Box3D::Z; - Box3D::Axis axis1 = Box3D::get_remaining_axes (front_rear_axis).first; - Box3D::Axis axis2 = Box3D::get_remaining_axes (front_rear_axis).second; - Box3D::Axis front_plane = Box3D::orth_plane_or_axis (front_rear_axis); - std::vector on_hull; std::vector inside_hull; std::vector visible_faces; -- cgit v1.2.3