From: David Sarrut Date: Thu, 14 Jun 2012 13:34:35 +0000 (+0200) Subject: Correct false depth for contour X-Git-Tag: v1.3.0~27^2~11 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=29d00baffa433b3f4a60c69116b840c97e470ec9;p=clitk.git Correct false depth for contour --- diff --git a/vv/vvImageContour.cxx b/vv/vvImageContour.cxx index 8136248..aa7b8d7 100644 --- a/vv/vvImageContour.cxx +++ b/vv/vvImageContour.cxx @@ -154,10 +154,9 @@ void vvImageContour::ShowActors() { //------------------------------------------------------------------------------ void vvImageContour::SetDepth(double d) { - mDepth = d+0.5; // FIXME to not be equal to overlay // Move the actor to be visible double position[3] = {0, 0, 0}; - int orientation = ComputeCurrentOrientation(); + int orientation = ComputeCurrentOrientation(); position[orientation] = -mDepth; for(unsigned int i=0; i