public ProceduralShape Clone() { ProceduralShape clone = new ProceduralShape(); clone.Indices = new short[Indices.Length]; clone.Vertices = new VertexPositionColorTextureNormal[Vertices.Length]; Indices.CopyTo(clone.Indices, 0); Vertices.CopyTo(clone.Vertices, 0); clone.PrimitiveCount = this.PrimitiveCount; return(clone); }