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; }
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); }