.. role:: ts-api-decorator

####################
MeshDataCopyIterator
####################

.. container:: ts-api-section

   .. js:class:: MeshDataCopyIterator

      An iterator over the vertices of a [[MeshDataCopyElement]] or [[MeshDataCopyElementGroup]].



.. container:: api-index-section

   .. rubric:: Methods

   .. rst-class:: api-index-list-item api-kind-method api-parent-kind-interface

   * :js:meth:`~MeshDataCopyIterator.done`
   * :js:meth:`~MeshDataCopyIterator.goTo`
   * :js:meth:`~MeshDataCopyIterator.next`





------------

Methods
=======

.. rst-class:: ts-api-section

done
----

.. js:method:: MeshDataCopyIterator.done()





   :returns: ``false`` if a call to [[next]] will return a vertex, or ``true`` if a call to [[next]] will return ``undefined``.


   :rtype: boolean

.. rst-class:: ts-api-section

goTo
----

.. js:method:: MeshDataCopyIterator.goTo( index)

   :param index: the index from which to iterate
   :type index: number


   Continue iteration from a particular index.


   :rtype: void

.. rst-class:: ts-api-section

next
----

.. js:method:: MeshDataCopyIterator.next()





   :returns: The next vertex in the element or element group, or ``undefined`` if iteration has completed.


   :rtype: MeshDataCopyVertex

