Beispiel #1
0
        /// <summary>
        /// keep sure input is ccw
        /// </summary>
        public HEFace AddFace(IndexN <int> vindice)
        {
            Debugs.Assert(vindice.All(id => id >= 0 && id < VertexCount));
            var vertice = new List <HEVertex>(vindice.Length);

            for (int i = 0; i < vindice.Length; i++)
            {
                vertice.Add(_vertices[vindice[i]]);
            }
            return(AddFace(vertice));
        }