Show
Ignore:
Timestamp:
06/21/11 19:09:56 (13 years ago)
Author:
sindj
Message:

Uprava integrace v souladu s clankem. JS

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/robust/robustlib.h

    r1367 r1376  
    2222using namespace itpp; 
    2323 
    24 const double max_range = 10;//numeric_limits<double>::max()/10e-10; 
     24const double max_range = 5;//numeric_limits<double>::max()/10e-10; 
    2525 
    2626/// An enumeration of possible actions performed on the polyhedrons. We can merge them or split them. 
     
    753753                        { 
    754754                                vertex_ref++; 
    755                         } 
    756                         while((*vertex_ref)->parentconditions.find(condition)==(*vertex_ref)->parentconditions.end()); 
    757  
    758                         double product = (*vertex_ref)->get_coordinates()*condition->value; 
     755 
     756                                if(vertex_ref==horiz_ref->vertices.end()) 
     757                                { 
     758                                        return; 
     759                                } 
     760                        } 
     761                        while((*vertex_ref)->parentconditions.find(condition)!=(*vertex_ref)->parentconditions.end()); 
     762 
     763                         
     764                         
     765                        vec appended_coords = (*vertex_ref)->get_coordinates(); 
     766                        appended_coords.ins(0,-1.0); 
     767                         
     768                        double product = appended_coords*condition->value; 
    759769 
    760770                        if(should_be_added) 
     
    16771687                        } 
    16781688 
     1689                        for(int i = 1;i<for_merging.size();i++) 
     1690                        { 
     1691                                for(list<polyhedron*>::iterator merge_ref = for_merging[i].begin();merge_ref!=for_merging[i].end();merge_ref++) 
     1692                                { 
     1693                                        delete (*merge_ref); 
     1694                                } 
     1695                        } 
     1696                         
    16791697                        for(set<vertex*>::iterator vert_ref = vertices_to_be_reduced.begin();vert_ref!=vertices_to_be_reduced.end();vert_ref++) 
    16801698                        {