Ejemplo n.º 1
0
        /*
         * public DijkstraPath(int v1, Guid id1, int v2, Guid id2, NurbsCurve p)
         * {
         *  ver_1_num = v1;
         *  ver_2_num = v2;
         *  pin_1_id = id1;
         *  pin_2_id = id2;
         *  path = new NurbsCurve(p);
         * }
         */

        public DijkstraPathVertex GetNeighboor(DijkstraPathVertex d_ver)
        {
            if (d_ver == d_ver_1)
            {
                return(d_ver_2);
            }
            else if (d_ver == d_ver_2)
            {
                return(d_ver_1);
            }
            else
            {
                return(null);
            }
        }
Ejemplo n.º 2
0
 public void DeepCopy(DijkstraPath d_p_new)
 {
     path_id                          = d_p_new.path_id;
     path_polyline                    = d_p_new.path_polyline;
     face_on_path                     = d_p_new.face_on_path;
     edge_on_path                     = d_p_new.edge_on_path;
     vertex_on_path                   = d_p_new.vertex_on_path;
     weight_changed_faces             = d_p_new.weight_changed_faces;
     weight_changed_faces_on_terminal = d_p_new.weight_changed_faces_on_terminal;
     start_face_num                   = d_p_new.start_face_num;
     end_face_num                     = d_p_new.end_face_num;
     path             = d_p_new.path;
     d_ver_1          = d_p_new.d_ver_1;
     d_ver_2          = d_p_new.d_ver_2;
     is_being_changed = d_p_new.is_being_changed;
 }
Ejemplo n.º 3
0
        //get coordinations of points on nurbscurve

        public DijkstraPath()
        {
            //ver_1_num = -1;
            //ver_2_num = -1;
            //pin_1_id = Guid.Empty;
            //pin_2_id = Guid.Empty;
            is_being_changed                 = false;
            d_ver_2                          = null;
            d_ver_1                          = null;
            path_id                          = Guid.Empty;
            face_on_path                     = new List <int>();
            edge_on_path                     = new List <int>();
            vertex_on_path                   = new List <int>();
            weight_changed_faces             = new List <int>();
            weight_changed_faces_on_terminal = new List <int>();
        }