From 79109e1d34514b325f70edff7e8f697352d31fad Mon Sep 17 00:00:00 2001 From: Raphael Maenle <17550607+g-spacewhale@users.noreply.github.com> Date: Sat, 27 Jan 2018 18:27:20 +0100 Subject: [PATCH] simplifed cut --- Source/functions/solve/structure.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Source/functions/solve/structure.cpp b/Source/functions/solve/structure.cpp index 9f2d3ed..7453793 100755 --- a/Source/functions/solve/structure.cpp +++ b/Source/functions/solve/structure.cpp @@ -207,6 +207,8 @@ float capLogElements(vector& log) if(log.back().PieceCollector[id].first < limit) break; } + cut(log,id);//for debugging + return 0;//for debugging int newid=0; //check if all over if(id==log.back().PieceCollector.size()) @@ -214,12 +216,6 @@ float capLogElements(vector& log) if(id>0) newid = --id; //set to the one just over limit - else//this only for test - cut(log,newid);//this only for test - - cut(log,++newid);//this only for test - return 1;//this only for test - while(id<(log.back().PieceCollector.size()-1)) //find maximum difference in function { if(!log.back().PieceCollector[id].first)