]> Creatis software - clitk.git/commitdiff
solved bug 317
authorRomulo Pinho <pinho@lyon.fnclcc.fr>
Thu, 26 May 2011 11:15:49 +0000 (13:15 +0200)
committerRomulo Pinho <pinho@lyon.fnclcc.fr>
Thu, 26 May 2011 11:15:49 +0000 (13:15 +0200)
vv/vvSlicer.cxx

index 47c2afdd591f03273e23e2a3cffc7079a511fbd6..d73eca1e7851dcd7551b914fe65c67ddbb44bf1d 100644 (file)
@@ -1345,9 +1345,12 @@ void vvSlicer::SetContourSlice()
 {
   if (mSurfaceCutActors.size() > 0)
     for (std::vector<vvMeshActor*>::iterator i=mSurfaceCutActors.begin();
-         i!=mSurfaceCutActors.end(); i++)
+         i!=mSurfaceCutActors.end(); i++) {
+         
+      (*i)->SetSlicingOrientation(this->SliceOrientation);
       (*i)->SetCutSlice((this->Slice)*this->GetImage()->GetSpacing()[this->SliceOrientation]+
                         this->GetImage()->GetOrigin()[this->SliceOrientation]);
+    }
 }
 //----------------------------------------------------------------------------