]> Creatis software - cpPlugins.git/commitdiff
...
authorLeonardo Flórez-Valencia <florez-l@javeriana.edu.co>
Fri, 21 Oct 2016 00:24:35 +0000 (19:24 -0500)
committerLeonardo Flórez-Valencia <florez-l@javeriana.edu.co>
Fri, 21 Oct 2016 00:24:35 +0000 (19:24 -0500)
plugins/Widgets/SplineWidget.cxx

index 2c4a0bcff8db1dca135d68d14d3a9bd323ebd26e..c89138adc2c19baa3155dd16e6b94b4abb2eac1e 100644 (file)
@@ -101,7 +101,7 @@ _GenerateData( )
         this->m_Contour->GetPoint( i, p );
         this->m_Contour->GetPoint( ( i + 1 ) % nPoints, q );
 
-        area += ( q[ 0 ] + p[ 0 ] ) * ( q[ 1 ] - p[ 1 ] );
+        area += ( p[ 0 ] * q[ 1 ] ) - ( q[ 0 ] - p[ 1 ] );
 
       } // rof
       std::cout << "Area: " << area << std::endl;