public List <int> retornaIndices(int pos)
        {
            List <int> indicesPos = new List <int>();
            NoFace     aux        = this.faces[pos].getInicio();

            while (aux != null)
            {
                indicesPos.Add(aux.Indice);
                aux = aux.Prox;
            }

            return(indicesPos);
        }
        public void inserir(int indice)
        {
            NoFace novo = new NoFace(indice, null);
            NoFace aux  = inicio;

            if (aux == null)
            {
                inicio = novo;
            }
            else
            {
                while (aux.Prox != null)
                {
                    aux = aux.Prox;
                }

                aux.Prox = novo;
            }
        }
Beispiel #3
0
 public NoFace(int indice, NoFace prox)
 {
     this.indice = indice;
     this.prox   = prox;
 }
 public Face()
 {
     this.inicio = null;
 }