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

.. js:class:: wv.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:`~wv.MeshDataCopyElementGroup.elementCount`
   * :js:data:`~wv.MeshDataCopyElementGroup.hasNormals`
   * :js:data:`~wv.MeshDataCopyElementGroup.hasRGBAs`
   * :js:data:`~wv.MeshDataCopyElementGroup.hasUVs`
   * :js:data:`~wv.MeshDataCopyElementGroup.vertexCount`
   
   .. rubric:: Methods
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:meth:`~wv.MeshDataCopyElementGroup.element`
   * :js:meth:`~wv.MeshDataCopyElementGroup.iterate`
   
   



.. rst-class:: kind-group kind-properties

.. rubric:: Properties
   :class: kind-group-title


.. js:data:: wv.MeshDataCopyElementGroup.elementCount

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



.. js:data:: wv.MeshDataCopyElementGroup.hasNormals

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



.. js:data:: wv.MeshDataCopyElementGroup.hasRGBAs

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



.. js:data:: wv.MeshDataCopyElementGroup.hasUVs

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



.. js:data:: wv.MeshDataCopyElementGroup.vertexCount

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



.. rst-class:: kind-group kind-methods

.. rubric:: Methods
   :class: kind-group-title


.. js:method:: wv.MeshDataCopyElementGroup.element

      .. rst-class:: sig-pretty-signature
      
         | element(**index**\ : *number*\ ): :js:class:`MeshDataCopyElement <wv.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 <wv.MeshDataCopyElement>`
      



.. js:method:: wv.MeshDataCopyElementGroup.iterate

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




