From 59aa8b01c5721c1af0fbe496f71916b40fc57886 Mon Sep 17 00:00:00 2001 From: Danial Saruji Date: Wed, 5 Oct 2011 09:58:38 +0200 Subject: [PATCH] instead of taking all slices only take first and last --- .../mitkClippedSurfaceBoundsCalculator.cpp | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Core/Code/Algorithms/mitkClippedSurfaceBoundsCalculator.cpp b/Core/Code/Algorithms/mitkClippedSurfaceBoundsCalculator.cpp index a60674f..f4c309a 100644 --- a/Core/Code/Algorithms/mitkClippedSurfaceBoundsCalculator.cpp +++ b/Core/Code/Algorithms/mitkClippedSurfaceBoundsCalculator.cpp @@ -108,10 +108,8 @@ void mitk::ClippedSurfaceBoundsCalculator::Update() // go through all slices of the image, ... const mitk::SlicedGeometry3D* slicedGeometry3D = dynamic_cast( m_Geometry3D.GetPointer() ); int allSlices = slicedGeometry3D->GetSlices(); - for ( int slice=0; sliceCalculateIntersectionPoints(dynamic_cast(slicedGeometry3D->GetGeometry2D(slice))); - } + this->CalculateIntersectionPoints(dynamic_cast(slicedGeometry3D->GetGeometry2D(0))); + this->CalculateIntersectionPoints(dynamic_cast(slicedGeometry3D->GetGeometry2D(allSlices-1))); } } -- 1.7.0.4