Skip to content

Plane: Add clampToLine to intersectLine().#33398

Merged
Mugen87 merged 1 commit into
mrdoob:devfrom
Mugen87:dev5
Apr 16, 2026
Merged

Plane: Add clampToLine to intersectLine().#33398
Mugen87 merged 1 commit into
mrdoob:devfrom
Mugen87:dev5

Conversation

@Mugen87

@Mugen87 Mugen87 commented Apr 16, 2026

Copy link
Copy Markdown
Collaborator

Fixed #11474.

Description

As suggested in #11474 (comment), the PR adds a clampToLine parameter to Plane.intersectLine(). When true, the intersection is clamped to the line segment. The default is true so the change is fully backward compatible. By setting it to false, the use case of #11474 will work.

@github-actions

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 361.4
85.82
361.4
85.82
+0 B
+0 B
WebGPU 637.46
177.05
637.46
177.05
+0 B
+0 B
WebGPU Nodes 635.58
176.76
635.58
176.76
+0 B
+0 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 493.9
120.5
493.91
120.5
+14 B
+9 B
WebGPU 709.2
191.87
709.22
191.87
+14 B
+6 B
WebGPU Nodes 658.42
179.16
658.43
179.17
+14 B
+6 B

@Mugen87 Mugen87 merged commit dc547c7 into mrdoob:dev Apr 16, 2026
15 of 16 checks passed
@Mugen87 Mugen87 added this to the r184 milestone Apr 16, 2026
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.

Plane.intersectLine An extension parameter should be added

1 participant