-
Notifications
You must be signed in to change notification settings - Fork 366
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
LineStrips3D ignores color if num_strips divisible by four or equals three #8035
Comments
Thanks @Wumpf for jumping on this fast! Also, I think you mixed up "good" and "bad" there. |
This is a bug in In short, the python API is trying to be way too clever with precedence of multi-representation of colors combined with our lazy batch-conversion. Concretely consider we support:
It's clear there's an ambiguity between an array of colors represented as ints, and a single RGBA represented as an array. |
fwiw, we actually try to handle this ambiguity here, but you need to be explicit about your types. Confirmed this works around the issue:
|
Thanks @jleibs for the help! |
Describe the bug
rr.LineStrips3D(strips, colors)
ignores thecolors
argument and makes all lines white iflen(strips) % 4 = 0 or len(strips) == 3
.To Reproduce
Desktop (please complete the following information):
Rerun version
Local client:
rerun-cli 0.18.2 [rustc 1.76.0 (07dca489a 2024-02-04), LLVM 17.0.6] aarch64-apple-darwin release-0.18.2 59ff15b, built 2024-08-29T13:55:42Z
The text was updated successfully, but these errors were encountered: