Skip to content

Boxes2D fill mode #12134

@Stretchyfish

Description

@Stretchyfish

This feature request is only from a simple visualization standpoint, as I realized that with the Python rerun-sdk, the following command would only change the color of the box outline.

rr.log("grid", rr.Boxes2D(
                           centers=boxes,
                           sizes=box_sizes,
                           colors=box_colors,
                           labels=box_labels,
                       ))

For some visualizations, like A* in a grid, I think being able to fill the entire box with a single color would be a great feature.

My personal suggestion would be with the following syntax.

rr.log("grid", rr.Boxes2D(
                           centers=boxes,
                           sizes=box_sizes,
                           colors=box_outline_colors,
                           fill_colors=box_fill_colors
                           labels=box_labels,
                       ))

Otherwise, I can see that, alternatively, an approach to create a colored square can be done with images or tensors :
https://ref.rerun.io/docs/python/0.27.2/common/archetypes/#rerun.archetypes.Image
https://ref.rerun.io/docs/python/0.27.2/common/archetypes/#rerun.archetypes.Tensor

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions