Subversion Repositories gelsvn

Rev

Rev 677 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 677 Rev 684
Line 971... Line 971...
971
            pos(vids[i] = kernel.add_vertex()) = Manifold::Vec(v0[0], v0[1], v0[2]);
971
            pos(vids[i] = kernel.add_vertex()) = Manifold::Vec(v0[0], v0[1], v0[2]);
972
        }
972
        }
973
        
973
        
974
        auto hash_fun = [](const EdgeKey& k) {return k.hash();};
974
        auto hash_fun = [](const EdgeKey& k) {return k.hash();};
975
        //map over the created edges - needed to preserve edge uniqueness
975
        //map over the created edges - needed to preserve edge uniqueness
976
        typedef unordered_map<EdgeKey, Edge, decltype(hash_fun)> EdgeMap;
976
		typedef unordered_map<EdgeKey, Edge, function<size_t(const EdgeKey&)>> EdgeMap;
977
        EdgeMap edge_map(no_vertices+no_faces,hash_fun);
977
        EdgeMap edge_map(no_vertices+no_faces,hash_fun);
978
        
978
        
979
        // counter that jumps between faces in indices vector
979
        // counter that jumps between faces in indices vector
980
        int_type n  = 0;
980
        int_type n  = 0;
981
        
981