__getitem__

Face.__getitem__(index)[source]

Vertex access.

Vertex access by relative index, enumeration starts at self.halfedge.origin.

Parameters:

index (int or slice) – Integer or slice object.

Raises:

IndexError – If index is outside the valid range.

Returns:

The vertex at position index.

Return type:

Vertex