From 7703b4bdcf03b5ff374dfe9efb5cc5c56c66ab0c Mon Sep 17 00:00:00 2001 From: James E McClure Date: Sun, 30 Aug 2015 12:35:07 -0400 Subject: [PATCH] Fixed bug in Euler created in refactoring --- common/TwoPhase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/TwoPhase.cpp b/common/TwoPhase.cpp index 1c90f8ba..7fadf6cb 100644 --- a/common/TwoPhase.cpp +++ b/common/TwoPhase.cpp @@ -596,7 +596,7 @@ void TwoPhase::ComponentAverages() euler = geomavg_EulerCharacteristic(nw_pts,nw_tris,n_nw_pts,n_nw_tris,i,j,k); euler += geomavg_EulerCharacteristic(ns_pts,ns_tris,n_ns_pts,n_ns_tris,i,j,k); // adjust for double-counted vertices and edges from the common curve - if (n_nws_pts > 0) euler -= 1.0*n_nws_pts; + if (n_nws_pts > 0) euler += 1.0*n_nws_pts; ComponentAverages_NWP(EULER,LabelNWP) += euler; }