From aa8f5a282ae445392a5bd8067423ed4b87cd915d Mon Sep 17 00:00:00 2001 From: James E McClure Date: Sun, 16 Sep 2018 13:59:32 -0400 Subject: [PATCH] dont' resize lists in local isosurface --- analysis/dcel.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/analysis/dcel.cpp b/analysis/dcel.cpp index 1ff2b6bb..ed658214 100644 --- a/analysis/dcel.cpp +++ b/analysis/dcel.cpp @@ -76,8 +76,10 @@ int Halfedge::size(){ DECL::DECL(){ - cellvertices=DTMutableList(20); - Triangles.resize(3,20); + cellvertices=DTMutableList(16); + FaceData.resize(16); + Triangles.resize(3,16); + halfedge.data.resize(6,48); } DECL::~DECL(){ @@ -229,10 +231,8 @@ void DECL::LocalIsosurface(const DoubleArray A, double value, const int i, const // Now add the local values to the DECL data structure if (nTris>0){ - FaceData.resize(TriangleCount); - //printf("Construct halfedge structure... \n"); - //printf(" Construct %i triangles \n",nTris); - halfedge.data.resize(6,nTris*3); + //FaceData.resize(TriangleCount); + //halfedge.data.resize(6,nTris*3); int idx_edge=0; for (int idx=0; idx