
########################
MeshDataCopyElementGroup
########################

.. js:class:: MeshDataCopyElementGroup

   Provides access to all data of a particular type (faces, lines or points) within a [[MeshDataCopy]].
   
   This object additionally supports the ECMAScript 2015 **iterable** protocol and therefore can be iterated over using a ``for..of`` loop.
   
   
   Index
   =====
   
   .. rubric:: Properties
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:data:`~MeshDataCopyElementGroup.elementCount`
   * :js:data:`~MeshDataCopyElementGroup.hasNormals`
   * :js:data:`~MeshDataCopyElementGroup.hasRGBAs`
   * :js:data:`~MeshDataCopyElementGroup.hasUVs`
   * :js:data:`~MeshDataCopyElementGroup.vertexCount`
   
   .. rubric:: Methods
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:meth:`~MeshDataCopyElementGroup.element`
   * :js:meth:`~MeshDataCopyElementGroup.iterate`
   
   




Properties
==========

.. js:data:: MeshDataCopyElementGroup.elementCount

   .. rst-class:: sig-pretty-signature
   
      | elementCount: *number*
   
   The number of elements in this group.
   



.. js:data:: MeshDataCopyElementGroup.hasNormals

   .. rst-class:: sig-pretty-signature
   
      | hasNormals: *boolean*
   
   Whether the vertices in this element group have normals.
   



.. js:data:: MeshDataCopyElementGroup.hasRGBAs

   .. rst-class:: sig-pretty-signature
   
      | hasRGBAs: *boolean*
   
   Whether the vertices in this element group have colors.
   



.. js:data:: MeshDataCopyElementGroup.hasUVs

   .. rst-class:: sig-pretty-signature
   
      | hasUVs: *boolean*
   
   Whether the vertices in this element group have texture coordinates.
   



.. js:data:: MeshDataCopyElementGroup.vertexCount

   .. rst-class:: sig-pretty-signature
   
      | vertexCount: *number*
   
   The total number of vertices in all elements in this group.
   





Methods
=======

.. js:method:: MeshDataCopyElementGroup.element

   .. rst-class:: sig-pretty-signature
   
      | element(**index**\ : *number*\ ): :js:class:`~MeshDataCopyElement`
   
   Provides access to mesh data of a single element. Throws ``RangeError`` if ``index`` is invalid.
   
   **Parameters**
   
      **index**\ : *number*
   
         the element's index
   
   
   
   **Returns**\ : :js:class:`~MeshDataCopyElement`
   



.. js:method:: MeshDataCopyElementGroup.iterate

   .. rst-class:: sig-pretty-signature
   
      | iterate(): :js:class:`~MeshDataCopyIterator`
   
   **Returns**\ : :js:class:`~MeshDataCopyIterator`
   
      An iterator over all the vertices in all the elements in this group.
   
   





