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

Add optional solid/filled (triangle mesh) rendering to Boxes3D and Ellipsoids. #6953

Merged
merged 22 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
4dabd76
Add `SolidColor` component type.
kpreid Jul 19, 2024
3816943
Make `process_color_slice()` take any component containing a color.
kpreid Jul 19, 2024
a4ebd47
Add `SolidCache` and use it in `EllipsoidsVisualizer`.
kpreid Jul 16, 2024
4e30473
Split color in `Ellipsoids` to `solid_colors` and `line_colors`.
kpreid Jul 19, 2024
8a96a1c
Add `solid_colors` to `Boxes3D`.
kpreid Jul 19, 2024
3a185a7
Add `ProcMeshKey::Cube`.
kpreid Jul 19, 2024
da3cb05
Add solid color support to `Boxes3DVisualizer`.
kpreid Jul 19, 2024
f5ac705
Change `box3d_batch` example to use solid colors.
kpreid Jul 19, 2024
32a3517
Don't use annotation info to set solid colors (for now).
kpreid Jul 21, 2024
355e2bb
Update archetype test and snippets for new components.
kpreid Jul 22, 2024
9b2b1d2
Add newline for lint
kpreid Jul 22, 2024
1927ae3
Add `FillMode` component, for `Boxes3D` and `Ellipsoids`.
kpreid Jul 23, 2024
6e2a5be
Add `SolidCache`.
kpreid Jul 16, 2024
b34e797
Add `ProcMeshKey::Cube`.
kpreid Jul 19, 2024
b0a97f4
Add `FillMode::Solid` support to `Boxes3D` and `Ellipsoids` visualizers.
kpreid Jul 24, 2024
eb48eb6
Add `FillMode` to snowman snippets.
kpreid Jul 23, 2024
58d509f
Add `FillMode` to `box3d_batch` snippets.
kpreid Jul 23, 2024
43e6cb3
Merge old two-component development to preserve it.
kpreid Jul 24, 2024
56329b1
Add missing `FillMode` reexport in C++.
kpreid Jul 24, 2024
1a44f2f
add editor for FillMode
Wumpf Jul 24, 2024
2b23ed3
Merge remote-tracking branch 'origin/main' into trimesh
Wumpf Jul 24, 2024
00a51d9
remove defunct py-test from contributor ci (pixi.toml says it's not s…
Wumpf Jul 24, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,17 @@ table Boxes3D (
/// Optional radii for the lines that make up the boxes.
radii: [rerun.components.Radius] ("attr.rerun.component_optional", nullable, order: 3000);

/// Optionally choose whether the boxes are drawn with lines or solid.
fill_mode: rerun.components.FillMode ("attr.rerun.component_optional", nullable, order: 3100);

/// Optional text labels for the boxes.
///
/// If there's a single label present, it will be placed at the center of the entity.
/// Otherwise, each instance will have its own label.
labels: [rerun.components.Text] ("attr.rerun.component_optional", nullable, order: 3100);
labels: [rerun.components.Text] ("attr.rerun.component_optional", nullable, order: 3200);

/// Optional [components.ClassId]s for the boxes.
///
/// The [components.ClassId] provides colors and labels if not specified explicitly.
class_ids: [rerun.components.ClassId] ("attr.rerun.component_optional", nullable, order: 3200);
class_ids: [rerun.components.ClassId] ("attr.rerun.component_optional", nullable, order: 3300);
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,14 @@ table Ellipsoids (
/// Optional radii for the lines used when the ellipsoid is rendered as a wireframe.
line_radii: [rerun.components.Radius] ("attr.rerun.component_optional", nullable, order: 3000);

/// Optionally choose whether the ellipsoids are drawn with lines or solid.
fill_mode: rerun.components.FillMode ("attr.rerun.component_optional", nullable, order: 3100);

/// Optional text labels for the ellipsoids.
labels: [rerun.components.Text] ("attr.rerun.component_optional", nullable, order: 3100);
labels: [rerun.components.Text] ("attr.rerun.component_optional", nullable, order: 3200);

/// Optional `ClassId`s for the ellipsoids.
///
/// The class ID provides colors and labels if not specified explicitly.
class_ids: [rerun.components.ClassId] ("attr.rerun.component_optional", nullable, order: 3200);
class_ids: [rerun.components.ClassId] ("attr.rerun.component_optional", nullable, order: 3300);
}
1 change: 1 addition & 0 deletions crates/store/re_types/definitions/rerun/components.fbs

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

16 changes: 16 additions & 0 deletions crates/store/re_types/definitions/rerun/components/fill_mode.fbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
namespace rerun.components;

/// How a geometric shape is drawn and colored.
enum FillMode: byte(
"attr.docs.unreleased"
) {
/// Lines are drawn around the edges of the shape.
///
/// The interior (2D) or surface (3D) are not drawn.
Wireframe (default),

/// The interior (2D) or surface (3D) is filled with a single color.
///
/// Lines are not drawn.
Solid,
}
37 changes: 33 additions & 4 deletions crates/store/re_types/src/archetypes/boxes3d.rs

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

36 changes: 32 additions & 4 deletions crates/store/re_types/src/archetypes/ellipsoids.rs

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

1 change: 1 addition & 0 deletions crates/store/re_types/src/components/.gitattributes

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

Loading
Loading