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 scene.add_line_segments() #315

Merged
merged 2 commits into from
Nov 4, 2024
Merged

Add scene.add_line_segments() #315

merged 2 commits into from
Nov 4, 2024

Conversation

brentyi
Copy link
Collaborator

@brentyi brentyi commented Nov 2, 2024

relevant: #309, #314

export interface LineSegmentsMessage {
type: "LineSegmentsMessage";
name: string;
props: { points: Uint8Array; line_width: number; colors: Uint8Array };

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might be mistaken but should this be points: Float32Array;

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! Uint8Array is (for now) actually expected: when we serialize numpy arrays we strip the shape + dtype information, so all arrays just become flat uint8 buffers.

@brentyi brentyi merged commit 8ddbe52 into main Nov 4, 2024
15 checks passed
@brentyi brentyi deleted the brent/line_segments branch November 4, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants