summaryrefslogtreecommitdiffstats
path: root/src/box3d.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2007-08-26 17:56:46 +0000
committercilix42 <cilix42@users.sourceforge.net>2007-08-26 17:56:46 +0000
commit59e792a6ebbacb1ddaba1d9825772a75805cc6ab (patch)
treec808a8882712250463c67c7230d60bdd578b5f18 /src/box3d.cpp
parentRewrite of z-order code for 3D boxes, first stage (hopefully this is finally ... (diff)
downloadinkscape-59e792a6ebbacb1ddaba1d9825772a75805cc6ab.tar.gz
inkscape-59e792a6ebbacb1ddaba1d9825772a75805cc6ab.zip
Various small cleanups
(bzr r3587)
Diffstat (limited to 'src/box3d.cpp')
-rw-r--r--src/box3d.cpp8
1 files changed, 2 insertions, 6 deletions
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<gint> &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<gint> on_hull;
std::vector<gint> inside_hull;
std::vector<gint> visible_faces;