nodes#

Part.nodes(rank: int | None = None) array#

Return the vertex array for the part.

Parameters:
rankint, optional

For a dataset using multiple ranks, the rank to return data from. The default is RankValues.SINGLE_RANK.

Returns:
numpy.array

A numpy array of packed values: x,y,z,z,y,z, …

Examples

>>> part = reader.parts()[0]
>>> nodes = part.nodes()
>>> nodes.shape = (len(nodes)//3, 3)
>>> print(nodes)