Skip to content

Commit

Permalink
introduce plane offset to the world grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Nov 28, 2024
1 parent 0c53396 commit 64c8d38
Show file tree
Hide file tree
Showing 23 changed files with 431 additions and 95 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,22 @@ table LineGrid3D (
/// Space between grid lines spacing of one line to the next in scene units.
spacing: rerun.blueprint.components.GridSpacing ("attr.rerun.component_optional", nullable, order: 2000);

/// How the grid is oriented.
///
/// Defaults to whatever plane is determined as the down plane by view coordinates if present.
orientation: rerun.blueprint.components.PlaneOrientation ("attr.rerun.component_optional", nullable, order: 3000);

/// Offset of the grid along its normal.
offset: rerun.blueprint.components.PlaneOffset ("attr.rerun.component_optional", nullable, order: 4000);

/// How thick the lines should be in ui units.
///
/// Default is 0.5 ui unit.
line_radius: rerun.blueprint.components.UiRadius ("attr.rerun.component_optional", nullable, order: 3000);
line_radius: rerun.blueprint.components.UiRadius ("attr.rerun.component_optional", nullable, order: 5000);

/// Color used for the grid.
///
/// Transparency via alpha channel is supported.
/// Defaults to a slightly transparent light gray.
color: rerun.components.Color ("attr.rerun.component_optional", nullable, order: 4000);

/// How the grid is oriented.
///
/// Defaults to whatever plane is determined as the down plane by view coordinates if present.
orientation: rerun.blueprint.components.PlaneOrientation ("attr.rerun.component_optional", nullable, order: 5000);
color: rerun.components.Color ("attr.rerun.component_optional", nullable, order: 6000);
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace rerun.blueprint.components;

/// Offset of a plane along its normal in scene units.
table PlaneOffset (
"attr.python.aliases": "float",
"attr.python.array_aliases": "npt.ArrayLike",
"attr.rust.derive": "Default",
"attr.rerun.scope": "blueprint"
) {
/// Offset of a plane along its normal in scene units.
distance: rerun.datatypes.Float32 (order: 100);
}
114 changes: 73 additions & 41 deletions crates/store/re_types/src/blueprint/archetypes/line_grid3d.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crates/store/re_types/src/blueprint/components/mod.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 64c8d38

Please sign in to comment.