Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factor out NearClipPlane from VisualBounds2D #8433

Merged
merged 8 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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.archetypes;

/// Controls the distance to the near clip plane in 3D scene units.
table NearClipPlane (
grtlr marked this conversation as resolved.
Show resolved Hide resolved
"attr.rerun.scope": "blueprint",
"attr.rust.derive": "Copy"
) {
/// Controls the distance to the near clip plane in 3D scene units.
///
/// Content closer than this distance will not be visible.
near_clip_plane: rerun.blueprint.components.NearClipPlane ("attr.rerun.component_optional", order: 1000);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace rerun.blueprint.archetypes;


/// Controls the visual bounds of a 2D view.
///
/// Everything within these bounds are guaranteed to be visible.
Expand All @@ -16,9 +15,4 @@ table VisualBounds2D (
///
/// Use this to control pan & zoom of the view.
range: rerun.blueprint.components.VisualBounds2D ("attr.rerun.component_required", order: 1000);

/// Controls the distance to the near clip plane in 3D scene units.
///
/// Content closer than this distance will not be visible.
near_clip_plane: rerun.blueprint.components.NearClipPlane ("attr.rerun.component_optional", order: 2000);
}

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/archetypes/mod.rs

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

186 changes: 186 additions & 0 deletions crates/store/re_types/src/blueprint/archetypes/near_clip_plane.rs

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

63 changes: 8 additions & 55 deletions crates/store/re_types/src/blueprint/archetypes/visual_bounds2d.rs

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

Loading
Loading