MeshDataCopyIterator

class MeshDataCopyIterator()

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

Methods


Methods

done

MeshDataCopyIterator.done()
Returns

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

Return type

boolean

goTo

MeshDataCopyIterator.goTo(index)
Arguments
  • index (number()) – the index from which to iterate

Continue iteration from a particular index.

Return type

void

next

MeshDataCopyIterator.next()
Returns

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

Return type

MeshDataCopyVertex