verify_scene_overlaps
Detect overlapping visual elements in a Manim scene by computing axis-aligned bounding boxes and reporting pairs whose boxes intersect.
Instructions
Detect overlapping visual elements (mobjects) in the current scene.
Computes axis-aligned bounding boxes for each mobject based on its stored position and dimension properties (radius, width, height, side_length, font_size). Reports any pair whose bounding boxes intersect.
NOTE: Positions are only reliably updated by move_to(). After shift/scale/rotate/next_to/align_to, the stored position may be stale. Text and TeX dimensions are estimated from font_size and character count — actual rendered glyphs may differ.
Returns: List of overlap reports, each with the pair of overlapping mobjects, their positions, types, and overlap magnitudes.
Example: >>> verify_scene_overlaps()
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |