Iterate over 3D model revisions

async AsyncCogniteClient.three_d.revisions.__call__(
model_id: int,
chunk_size: int | None = None,
published: bool = False,
limit: int | None = None,
) AsyncIterator[ThreeDModelRevision] | AsyncIterator[ThreeDModelRevisionList]

Iterate over 3d model revisions

Fetches 3d model revisions as they are iterated over, so you keep a limited number of 3d model revisions in memory.

Parameters:
  • model_id (int) – Iterate over revisions for the model with this id.

  • chunk_size (int | None) – Number of 3d model revisions to return in each chunk. Defaults to yielding one model a time.

  • published (bool) – Filter based on whether or not the revision has been published.

  • limit (int | None) – Maximum number of 3d model revisions to return. Defaults to return all items.

Yields:

ThreeDModelRevision | ThreeDModelRevisionList – yields ThreeDModelRevision one by one if chunk is not specified, else ThreeDModelRevisionList objects.