@@ -17,18 +17,17 @@ def truncated_radians(deg: float) -> float:
17
17
rr .log (
18
18
"box" ,
19
19
rr .Boxes3D (half_sizes = [4.0 , 2.0 , 1.0 ], fill_mode = rr .components .FillMode .Solid ),
20
- rr .Transform3D (axis_length = 10 ),
20
+ rr .Transform3D (clear = False , axis_length = 10 ),
21
21
)
22
22
23
23
for deg in range (46 ):
24
24
step += 1
25
25
rr .set_time_sequence ("step" , step )
26
26
27
27
rad = truncated_radians (deg * 4 )
28
- # TODO(cmc): update_fields
29
28
rr .log (
30
29
"box" ,
31
- rr .Transform3D (
30
+ rr .Transform3D . update_fields (
32
31
# TODO(cmc): we should have access to all the fields of the extended constructor too.
33
32
rotation_axis_angle = rr .RotationAxisAngle (axis = [0.0 , 1.0 , 0.0 ], radians = rad ),
34
33
),
@@ -37,30 +36,27 @@ def truncated_radians(deg: float) -> float:
37
36
for t in range (51 ):
38
37
step += 1
39
38
rr .set_time_sequence ("step" , step )
40
- # TODO(cmc): update_fields
41
39
rr .log (
42
40
"box" ,
43
- rr .Transform3D (translation = [0 , 0 , t / 10.0 ]),
41
+ rr .Transform3D . update_fields (translation = [0 , 0 , t / 10.0 ]),
44
42
)
45
43
46
44
for deg in range (46 ):
47
45
step += 1
48
46
rr .set_time_sequence ("step" , step )
49
47
50
48
rad = truncated_radians ((deg + 45 ) * 4 )
51
- # TODO(cmc): update_fields
52
49
rr .log (
53
50
"box" ,
54
- rr .Transform3D (
51
+ rr .Transform3D . update_fields (
55
52
# TODO(cmc): we should have access to all the fields of the extended constructor too.
56
53
rotation_axis_angle = rr .RotationAxisAngle (axis = [0.0 , 1.0 , 0.0 ], radians = rad ),
57
54
),
58
55
)
59
56
60
57
step += 1
61
58
rr .set_time_sequence ("step" , step )
62
- # TODO(cmc): update_fields(clear=True)
63
59
rr .log (
64
60
"box" ,
65
- rr .Transform3D ( axis_length = 15 ),
61
+ rr .Transform3D . update_fields ( clear = True , axis_length = 15 ),
66
62
)
0 commit comments