public void SetVertex(int vertexID, sXYZ loc, object dataIn) { sVertex v = new sVertex(vertexID, loc); v.data = dataIn; this.vertices.Add(v); }
public void SetVertex(int vertexID, sXYZ loc, sColor col) { sVertex v = new sVertex(vertexID, loc); v.color = col; this.vertices.Add(v); }
public sVertex DuplicatesVertex() { sVertex nv = new sVertex(); nv.color = this.color.DuplicatesColor(); nv.ID = this.ID; nv.location = this.location.DuplicatesXYZ(); if (this.normal != null) { nv.normal = this.normal.DuplicatesXYZ(); } if (this.faceIndices != null) { nv.faceIndices = new List <int>(); foreach (int fid in this.faceIndices) { nv.faceIndices.Add(fid); } } nv.data = this.data; return(nv); }
public void SetVertex(int vertexID, sXYZ loc) { sVertex v = new sVertex(vertexID, loc); this.vertices.Add(v); }