# MeshDataCopyElementGroup

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

  Properties

  - `elementCount`
  - `hasNormals`
  - `hasRGBAs`
  - `hasUVs`
  - `vertexCount`

  Methods

  - `element`
  - `iterate`

## Properties

`MeshDataCopyElementGroup.``elementCount`
  elementCount: number

  The number of elements in this group.

`MeshDataCopyElementGroup.``hasNormals`
  hasNormals: boolean

  Whether the vertices in this element group have normals.

`MeshDataCopyElementGroup.``hasRGBAs`
  hasRGBAs: boolean

  Whether the vertices in this element group have colors.

`MeshDataCopyElementGroup.``hasUVs`
  hasUVs: boolean

  Whether the vertices in this element group have texture coordinates.

`MeshDataCopyElementGroup.``vertexCount`
  vertexCount: number

  The total number of vertices in all elements in this group.

## Methods

`MeshDataCopyElementGroup.``element`()
  element(index: number): `MeshDataCopyElement`

  Provides access to mesh data of a single element. Throws `RangeError` if `index` is invalid.

  Parameters

  > index: number

  > > the element’s index

  Returns: `MeshDataCopyElement`

`MeshDataCopyElementGroup.``iterate`()
  iterate(): `MeshDataCopyIterator`

  Returns: `MeshDataCopyIterator`

  > An iterator over all the vertices in all the elements in this group.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Visualize Web or choose a sample question below to start a conversation:

What is HOOPS Visualize Web?
What are the latest release notes for HOOPS Visualize Web?
How do I start evaluating HOOPS Visualize Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...