Exemple #1
0
        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);
        }
Exemple #2
0
 protected void AddVertex(Vector3 vector)
 => InnerVertices.Add(vector);