Skip to content

Commit

Permalink
fix point2d_ui_radius comparison test, rename entities to be more sen…
Browse files Browse the repository at this point in the history
…sible
  • Loading branch information
Wumpf committed Jul 2, 2024
1 parent 9f729cf commit 9f5d8c5
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions crates/re_types/src/archetypes/points2d.rs

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

4 changes: 2 additions & 2 deletions crates/re_types/src/archetypes/points3d.rs

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

6 changes: 3 additions & 3 deletions docs/snippets/all/archetypes/point2d_ui_radius.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ int main() {

// Two blue points with scene unit radii of 0.1 and 0.3.
rec.log(
"scene_unit_points",
"scene_units",
rerun::Points2D({{0.0f, 0.0f}, {0.0f, 1.0f}})
// By default, radii are interpreted as world-space units.
.with_radii({0.1f, 0.3f})
Expand All @@ -19,8 +19,8 @@ int main() {
// UI points are independent of zooming in Views, but are sensitive to the application UI scaling.
// For 100% ui scaling, UI points are equal to pixels.
rec.log(
"ui_points_points",
rerun::Points2D({{0.0f, 0.0f}, {1.0f, 1.0f}})
"ui_points",
rerun::Points2D({{1.0f, 0.0f}, {1.0f, 1.0f}})
// rerun::Radius::ui_points produces radii that the viewer interprets as given in ui points.
.with_radii({
rerun::Radius::ui_points(40.0f),
Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/all/archetypes/point2d_ui_radius.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# Two blue points with scene unit radii of 0.1 and 0.3.
rr.log(
"scene_unit_points",
"scene_units",
rr.Points2D(
[[0, 0], [0, 1]],
# By default, radii are interpreted as world-space units.
Expand All @@ -20,7 +20,7 @@
# UI points are independent of zooming in Views, but are sensitive to the application UI scaling.
# For 100% ui scaling, UI points are equal to pixels.
rr.log(
"ui_points_points",
"ui_points",
rr.Points2D(
[[1, 0], [1, 1]],
# rr.Radius.ui_points produces radii that the viewer interprets as given in ui points.
Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/all/archetypes/point2d_ui_radius.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

// Two blue points with scene unit radii of 0.1 and 0.3.
rec.log(
"scene_unit_points",
"scene_units",
&rerun::Points2D::new([(0.0, 0.0), (0.0, 1.0)])
// By default, radii are interpreted as world-space units.
.with_radii([0.1, 0.3])
Expand All @@ -16,7 +16,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
// UI points are independent of zooming in Views, but are sensitive to the application UI scaling.
// For 100% ui scaling, UI points are equal to pixels.
rec.log(
"ui_points_points",
"ui_points",
&rerun::Points2D::new([(1.0, 0.0), (1.0, 1.0)])
// rerun::Radius::new_ui_points produces a radius that the viewer interprets as given in ui points.
.with_radii([
Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/all/archetypes/point3d_ui_radius.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ int main() {

// Two blue points with scene unit radii of 0.1 and 0.3.
rec.log(
"scene_unit_points",
"scene_units",
rerun::Points3D({{0.0f, 1.0f, 0.0f}, {1.0f, 1.0f, 1.0f}})
// By default, radii are interpreted as world-space units.
.with_radii({0.1f, 0.3f})
Expand All @@ -19,7 +19,7 @@ int main() {
// UI points are independent of zooming in Views, but are sensitive to the application UI scaling.
// For 100% ui scaling, UI points are equal to pixels.
rec.log(
"ui_points_points",
"ui_points",
rerun::Points3D({{0.0f, 0.0f, 0.0f}, {1.0f, 0.0f, 1.0f}})
// rerun::Radius::ui_points produces radii that the viewer interprets as given in ui points.
.with_radii({
Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/all/archetypes/point3d_ui_radius.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Two blue points with scene unit radii of 0.1 and 0.3.
rr.log(
"scene_unit_points",
"scene_units",
rr.Points3D(
[[0, 1, 0], [1, 1, 1]],
# By default, radii are interpreted as world-space units.
Expand All @@ -19,7 +19,7 @@
# UI points are independent of zooming in Views, but are sensitive to the application UI scaling.
# For 100% ui scaling, UI points are equal to pixels.
rr.log(
"ui_points_points",
"ui_points",
rr.Points3D(
[[0, 0, 0], [1, 0, 1]],
# rr.Radius.ui_points produces radii that the viewer interprets as given in ui points.
Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/all/archetypes/point3d_ui_radius.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

// Two blue points with scene unit radii of 0.1 and 0.3.
rec.log(
"scene_unit_points",
"scene_units",
&rerun::Points3D::new([(0.0, 1.0, 0.0), (1.0, 1.0, 1.0)])
// By default, radii are interpreted as world-space units.
.with_radii([0.1, 0.3])
Expand All @@ -16,7 +16,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
// UI points are independent of zooming in Views, but are sensitive to the application UI scaling.
// For 100% ui scaling, UI points are equal to pixels.
rec.log(
"ui_points_points",
"ui_points",
&rerun::Points3D::new([(0.0, 0.0, 0.0), (1.0, 0.0, 1.0)])
// rerun::Radius::new_ui_points produces a radius that the viewer interprets as given in ui points.
.with_radii([
Expand Down
6 changes: 3 additions & 3 deletions rerun_cpp/src/rerun/archetypes/points2d.hpp

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

4 changes: 2 additions & 2 deletions rerun_cpp/src/rerun/archetypes/points3d.hpp

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

4 changes: 2 additions & 2 deletions rerun_py/rerun_sdk/rerun/archetypes/points2d.py

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

4 changes: 2 additions & 2 deletions rerun_py/rerun_sdk/rerun/archetypes/points3d.py

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

0 comments on commit 9f5d8c5

Please sign in to comment.