From: Leonardo Flórez-Valencia Date: Fri, 21 Oct 2016 00:24:35 +0000 (-0500) Subject: ... X-Git-Tag: v0.1~78 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=6a541441b605b00b77d8f8e2b024cc709fda20b9;hp=3c542bf84e8802c1332cd1c348511e5e049a596f;p=cpPlugins.git ... --- 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;