コード例 #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);
        }