> For the complete documentation index, see [llms.txt](https://docs.imerit-prod.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.imerit-prod.io/annotation-tool/key-features/cuboid-grouping.md).

# Cuboid Grouping

Cuboid Grouping allows users to link multiple cuboids that move together in the real world—maintaining their relative positions throughout a sequence. This is particularly useful when tracking objects that are physically connected or consistently aligned. The grouping helps improve annotation accuracy, ensures spatial consistency, and reduces the need for manual frame-by-frame adjustments. It’s a good and lean feature, enhancing both annotation quality and workflow efficiency without adding complexity.

{% hint style="success" %} <img src="https://254647936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzGccvqLYeyaJ6Dgazh7K%2Fuploads%2FPtR8n6k8SV8lfeETLAEz%2FBulb.png?alt=media&amp;token=ec7271f0-1bef-4992-8c04-b668b1e44ea6" alt="" data-size="line"> Useful when tracking objects that are physically connected or consistently aligned.
{% endhint %}

<figure><img src="https://254647936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzGccvqLYeyaJ6Dgazh7K%2Fuploads%2FjHKgmREUPPt1vgjxYBEM%2FCuboidGrouping.gif?alt=media&amp;token=86f64978-43ac-479e-ac4b-330711945c8d" alt=""><figcaption></figcaption></figure>

***

## Use Case

* **Agri-Tech – Tractor with a Towed Implement**\
  Grouping ensures the implement maintains a fixed offset behind the tractor across the sequence, saving time and reducing annotation drift.
* **Autonomous Driving – Cabin and a Trailer**\
  Helps track multi-part vehicles moving together while preserving their orientation and spacing.

***

## Benefits

* **Good**: Maintains consistent spatial relationships between grouped cuboids, improving annotation accuracy across frames.
* **Lean**: Reduces manual alignment work, especially in sequences where linked objects appear across long spans.
* **Flexible**: Grouping can be applied and ungrouped selectively over any frame range, offering precise control.

***

## Steps to Use Cuboid Grouping

1. Multi-select cuboids to be grouped by holding down the Ctrl key.
2. Hover over the cuboid that should lead the group, then right-click (contextual click).
3. Choose ‘Group’ from the context menu.
   * The grouping feature will confirm the range and prevent the user from providing a range where both annotations are not present.
4. Click on an individual cuboid within the group to view the orthogonal view.
   * These orthogonal views are read-only as long as the cuboid is grouped.&#x20;

     <figure><img src="https://254647936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzGccvqLYeyaJ6Dgazh7K%2Fuploads%2FpuOMYsFa0chBwZ9cbDYw%2Fimage.png?alt=media&amp;token=d4f3c2f3-762b-45be-841f-c496dcd8b053" alt="" width="563"><figcaption></figcaption></figure>
5. To ungroup:
   * Navigate to the frame where the grouping should end.
   * Right-click the lead cuboid and select ‘Ungroup’.
   * The ungroup will confirm the range the ungrouping action should be applied to.

> **Tip:** Use grouping to avoid drift and rework when dealing with attached or coordinated objects that stay aligned throughout a sequence.
