Continuing to refactor Euler characteristic
This commit is contained in:
@@ -782,7 +782,7 @@ void TwoPhase::ComponentAverages()
|
||||
|
||||
// Compute the Euler characteristic
|
||||
n_nw_pts=n_nw_tris=0;
|
||||
geomavg_MarchingCubes(SDn,fluid_isovalue,i,j,k,nw _pts,n_nw_pts,nw_tris,n_nw_tris);
|
||||
geomavg_MarchingCubes(SDn,fluid_isovalue,i,j,k,nw_pts,n_nw_pts,nw_tris,n_nw_tris);
|
||||
if (n_nw_pts > 0 ){
|
||||
int nvert = n_nw_pts;
|
||||
int nside = 2*nvert-3;
|
||||
|
||||
@@ -4357,7 +4357,7 @@ inline double geomavg_EulerCharacteristic(DTMutableList<Point> &Points, IntArray
|
||||
// Exclude edges and vertices shared with between multiple cubes
|
||||
double EulerChar;
|
||||
int nvert=npts;
|
||||
int nside=2*vert-3;
|
||||
int nside=2*nvert-3;
|
||||
int nface=nvert-2;
|
||||
//if (ntris != nface){
|
||||
// nface = ntris;
|
||||
|
||||
Reference in New Issue
Block a user