]> Creatis software - cpPlugins.git/blobdiff - plugins/Widgets/SplineWidget.cxx
...
[cpPlugins.git] / plugins / Widgets / SplineWidget.cxx
index c89138adc2c19baa3155dd16e6b94b4abb2eac1e..bb68821a6095a9efd6da877f876566e1be76323b 100644 (file)
@@ -1,8 +1,9 @@
-#include <plugins/Widgets/SplineWidget.h>
+#include <Widgets/SplineWidget.h>
 #include <cpPlugins/DataObjects/Image.h>
 #include <cpPlugins/DataObjects/Mesh.h>
 #include <cpExtensions/Visualization/WindowLevelImageActor.h>
-#include <cpPlugins_BaseObjects.h>
+
+#include <itkVector.h>
 
 #include <vtkImageData.h>
 #include <vtkRenderer.h>
@@ -94,18 +95,6 @@ _GenerateData( )
       typedef std::vector< _TVector > _TVectors;
 
       unsigned long nPoints = this->m_Contour->GetNumberOfPoints( );
-      double area = 0.0;
-      for( unsigned long i = 0; i < nPoints; ++i )
-      {
-        double p[ 3 ], q[ 3 ];
-        this->m_Contour->GetPoint( i, p );
-        this->m_Contour->GetPoint( ( i + 1 ) % nPoints, q );
-
-        area += ( p[ 0 ] * q[ 1 ] ) - ( q[ 0 ] - p[ 1 ] );
-
-      } // rof
-      std::cout << "Area: " << area << std::endl;
-
       unsigned long support = nPoints / 10;
       _TVectors pp, qp;
       for( unsigned long i = 0; i < support; ++i )