public void AddFace(params Vector3[] nodes) { int[] f_index = new int[nodes.Length]; for (int i = 0; i < f_index.Length; i++) { int index = InnerVertices.IndexOf(nodes[i]); if (index < 0) { index = InnerVertices.Count; InnerVertices.Add(nodes[i]); } f_index[i] = index; } Faces.Add(f_index); }
protected void AddVertex(Vector3 vector) => InnerVertices.Add(vector);