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

BufferGeometry: Check for existing attribute in setFromPoints(). #29696

Merged
merged 4 commits into from
Oct 20, 2024

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Oct 19, 2024

Related issue: #29452

Description

The curve modifier examples show that BufferGeometry.setFromPoints() might be used on existing data. In this case, the method should not overwrite an existing buffer attribute but update the existing one.

@Mugen87 Mugen87 added this to the r170 milestone Oct 19, 2024
@Mugen87 Mugen87 changed the title Examples: Clean up. BufferGeometry: Check for existing attribute in setFromPoints(). Oct 19, 2024
Copy link

github-actions bot commented Oct 19, 2024

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 692.71
171.44
692.71
171.44
+0 B
+0 B
WebGPU 817.37
220.29
817.37
220.29
+0 B
+0 B
WebGPU Nodes 816.88
220.17
816.88
220.17
+0 B
+0 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 464.93
112.2
464.93
112.2
+0 B
+0 B
WebGPU 539.13
145.56
539.13
145.56
+0 B
+0 B
WebGPU Nodes 495.16
135.43
495.16
135.43
+0 B
+0 B

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.

1 participant