예제 #1
0
        public void SetFromDBVertice(DBVertice vertice)
        {
            this.X = vertice.X;
            this.Y = vertice.Y;
            this.Z = vertice.Z;
            //this.Color = vertice.Color;
            this.NodeHandleValue = vertice.NodeHandleValue;

            _index       = vertice.Index;
            _handleValue = vertice.NodeHandleValue;
        }
예제 #2
0
        public List <DBVertice> GetVertices()
        {
            List <DBVertice> vertices = new List <DBVertice>();
            int i = 0;

            foreach (var v in this.List)
            {
                DPVertice dpv = v as DPVertice;
                DBVertice dbv = new DBVertice(dpv.X, dpv.Y, dpv.Z);
                dbv.NodeHandleValue = dpv.NodeHandleValue;
                dbv.Index           = i;
                dbv.NodeHandleValue = dpv.NodeHandleValue;
                vertices.Add(dbv);
                i++;
            }
            return(vertices);
        }