Show
Ignore:
Timestamp:
10/20/10 13:48:34 (14 years ago)
Author:
sindj
Message:

Dodelani deleni - uz funguje. Je treba jeste dodelat predavani vrcholu a triangulaci a vypocet integralu v jednotlivych polyhedronech. Pak uz slucovani. JS

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/robust/robustlib.h

    r1216 r1219  
    497497                                                { 
    498498                                                case 1: 
    499                                                         current_parent->positivechildren.push_back(sender);      
     499                                                        current_parent->positivechildren.push_back(sender);                                                      
    500500                                                break; 
    501501                                                case 0: 
    502                                                         current_parent->neutralchildren.push_back(sender); 
     502                                                        current_parent->neutralchildren.push_back(sender);                                                       
    503503 
    504504                                                        if(current_parent->totally_neutral == NULL) 
     
    518518                                                break; 
    519519                                                case -1: 
    520                                                         current_parent->negativechildren.push_back(sender); 
     520                                                        current_parent->negativechildren.push_back(sender);                                                      
    521521                                                break; 
    522522                                                } 
     
    560560                                                                current_parent->totally_neutral = NULL; 
    561561                                                                current_parent->kids_rel_addresses.clear(); 
    562                                                                 //current_parent->set_state(0, SPLIT); 
     562                                                                current_parent->message_counter = 0; 
    563563                                                        } 
    564564                                                } 
     
    595595        } 
    596596 
    597         void step_me() 
     597        void step_me(int marker) 
    598598        { 
    599599                for(int i = 0;i<statistic.size();i++) 
     
    778778                                                                                                                                current_polyhedron->totallyneutralgrandchildren.end()); 
    779779 
     780                                        for(list<polyhedron*>::iterator grand_ref = current_polyhedron->totallyneutralgrandchildren.begin(); grand_ref != current_polyhedron->totallyneutralgrandchildren.end();grand_ref++) 
     781                                        { 
     782                                                (*grand_ref)->parents.push_back(new_totally_neutral_child); 
     783                                        } 
     784 
    780785                                        toprow* positive_poly = new toprow(((toprow*)current_polyhedron)->condition+toadd); 
    781786                                        toprow* negative_poly = new toprow(((toprow*)current_polyhedron)->condition-toadd); 
     
    786791 
    787792                                                (*parent_ref)->neutralchildren.remove(current_polyhedron); 
     793                                                (*parent_ref)->children.remove(current_polyhedron); 
     794 
     795                                                (*parent_ref)->children.push_back(positive_poly); 
     796                                                (*parent_ref)->children.push_back(negative_poly); 
    788797                                                (*parent_ref)->positivechildren.push_back(positive_poly); 
    789798                                                (*parent_ref)->negativechildren.push_back(negative_poly);