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..ofloop.
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):
MeshDataCopyElementProvides access to mesh data of a single element. Throws
RangeErrorifindexis invalid.Parameters
index: number
the element’s indexReturns:
MeshDataCopyElement
-
MeshDataCopyElementGroup.iterate() - iterate():
MeshDataCopyIteratorReturns:
MeshDataCopyIteratorAn iterator over all the vertices in all the elements in this group.