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

ArrowHelper: Replace cylinder with cone geometry. #30867

Merged
merged 1 commit into from
Apr 4, 2025

Conversation

shlomnissan
Copy link
Contributor

Description

This PR updates ArrowHelper to use ConeGeometry instead of CylinderGeometry for the arrowhead. Since ConeGeometry is a more semantically appropriate and cleaner choice (it subclasses CylinderGeometry with a zero base radius), this change improves readability without altering behavior or visuals.

@shlomnissan shlomnissan changed the title Replace cylinder with cone geometry for arrow head Replace cylinder geometry with cone geometry for arrowhead Apr 4, 2025
Copy link

github-actions bot commented Apr 4, 2025

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 336.44
78.37
336.44
78.37
+0 B
+0 B
WebGPU 541.67
150.04
541.67
150.04
+0 B
+0 B
WebGPU Nodes 541.14
149.93
541.14
149.93
+0 B
+0 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.37
112.21
465.37
112.21
+0 B
+0 B
WebGPU 614.51
166.09
614.51
166.09
+0 B
+0 B
WebGPU Nodes 569.5
155.49
569.5
155.49
+0 B
+0 B

@Mugen87 Mugen87 added this to the r176 milestone Apr 4, 2025
@Mugen87 Mugen87 merged commit cf9e084 into mrdoob:dev Apr 4, 2025
12 checks passed
@Mugen87 Mugen87 changed the title Replace cylinder geometry with cone geometry for arrowhead ArrowHelper: Replace cylinder geometry with cone geometry. Apr 4, 2025
@Mugen87 Mugen87 changed the title ArrowHelper: Replace cylinder geometry with cone geometry. ArrowHelper: Replace cylinder with cone geometry. Apr 4, 2025
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