MeshDataCopyIterator

class Communicator.MeshDataCopyIterator()

An iterator over the vertices of a MeshDataCopyElement or MeshDataCopyElementGroup

Methods


Methods

done

MeshDataCopyIterator.done()
Return type

boolean

Returns

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

goTo

MeshDataCopyIterator.goTo(index)

Continue iteration from a particular index.

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

Return type

void

next

MeshDataCopyIterator.next()
Return type

MeshDataCopyVertex()

Returns

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