From 6a541441b605b00b77d8f8e2b024cc709fda20b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leonardo=20Fl=C3=B3rez-Valencia?= Date: Thu, 20 Oct 2016 19:24:35 -0500 Subject: [PATCH] ... --- plugins/Widgets/SplineWidget.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Widgets/SplineWidget.cxx b/plugins/Widgets/SplineWidget.cxx index 2c4a0bc..c89138a 100644 --- a/plugins/Widgets/SplineWidget.cxx +++ b/plugins/Widgets/SplineWidget.cxx @@ -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; -- 2.47.1