# \#intersection

**URL:** https://discourse.threejs.org/tag/intersection/456.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [How to drag a point across a plane?](https://discourse.threejs.org/t/how-to-drag-a-point-across-a-plane/70418)

<div class="topic-metadata">

**Author:** [@GniLudio](https://discourse.threejs.org/u/GniLudio)\
**Replies:** 15\
**Last updated:** [September 29, 2024, 1:17pm UTC](https://discourse.threejs.org/t/how-to-drag-a-point-across-a-plane/70418 "2024-09-29T13:17:22Z")

</div>

I am trying to let the user drag a point across a plane. For that I project the point onto the plane every time the point is moved: const unprojected = sphereMesh.position.clone(); const direction = unprojected.sub(cam…

---

## [Resolved: Bouding box is one move late](https://discourse.threejs.org/t/resolved-bouding-box-is-one-move-late/70468)

<div class="topic-metadata">

**Author:** [@Natalia\_Medrano\_do\_Nascimento](https://discourse.threejs.org/u/Natalia_Medrano_do_Nascimento)\
**Replies:** 4\
**Last updated:** [September 9, 2024, 11:55am UTC](https://discourse.threejs.org/t/resolved-bouding-box-is-one-move-late/70468 "2024-09-09T11:55:13Z")

</div>

I am trying to get an immediate real-time intersection. So, I want “intersection” to be printed in the console when the window bounding box intersects with the wall bounding box. However, I noticed that the window box is…

---

## [How do I display this intersected edge?](https://discourse.threejs.org/t/how-do-i-display-this-intersected-edge/70015)

<div class="topic-metadata">

**Author:** [@Wobi9e](https://discourse.threejs.org/u/Wobi9e)\
**Replies:** 2\
**Last updated:** [August 28, 2024, 11:49am UTC](https://discourse.threejs.org/t/how-do-i-display-this-intersected-edge/70015 "2024-08-28T11:49:39Z")

</div>

Hello, I have a problem and I dont know how to solve it. I hope someone of you can help me with that. As you can see in the attached image, I have created a “XRay-Cube” that displays Objects that lie below the bufferge…

---

## [How to find objects in a Room area(volume) -Zone definition-Position of edges](https://discourse.threejs.org/t/how-to-find-objects-in-a-room-area-volume-zone-definition-position-of-edges/68291)

<div class="topic-metadata">

**Author:** [@Parisa\_Shahbazi](https://discourse.threejs.org/u/Parisa_Shahbazi)\
**Replies:** 0\
**Last updated:** [July 18, 2024, 7:02am UTC](https://discourse.threejs.org/t/how-to-find-objects-in-a-room-area-volume-zone-definition-position-of-edges/68291 "2024-07-18T07:02:27Z")

</div>

Hi I load a 3d model that is related to the BIM project floorplan. Now I want to define a zone. For example, the user should select a floor and I have to find all things related to this floor(for example bedroom) and t…

---

## [Parametric relationship: Walls, Floors](https://discourse.threejs.org/t/parametric-relationship-walls-floors/68034)

<div class="topic-metadata">

**Author:** [@Fizzy](https://discourse.threejs.org/u/Fizzy)\
**Replies:** 1\
**Last updated:** [July 15, 2024, 12:29am UTC](https://discourse.threejs.org/t/parametric-relationship-walls-floors/68034 "2024-07-15T00:29:45Z")

</div>

Does anyone know how to create interactive walls in Three.js that automatically adjust when a connected wall is manipulated? I have a room modeled as a GLB file, comprising four walls and a floor. For example, if I stret…

---

## [System lag when using 250000 raycasters](https://discourse.threejs.org/t/system-lag-when-using-250000-raycasters/67755)

<div class="topic-metadata">

**Author:** [@felix-kami](https://discourse.threejs.org/u/felix-kami)\
**Replies:** 6\
**Last updated:** [July 8, 2024, 11:13am UTC](https://discourse.threejs.org/t/system-lag-when-using-250000-raycasters/67755 "2024-07-08T11:13:58Z")

</div>

I’m new, I have a problem and want a solution Currently, I want to place cubes with different shapes on top of each other. The current logic is to drag object A along the Y axis and release it, object A will fall down a…

---

## [Build new mesh from clipping plane intersection vertices](https://discourse.threejs.org/t/build-new-mesh-from-clipping-plane-intersection-vertices/65756)

<div class="topic-metadata">

**Author:** [@prosu](https://discourse.threejs.org/u/prosu)\
**Replies:** 1\
**Last updated:** [May 26, 2024, 1:07pm UTC](https://discourse.threejs.org/t/build-new-mesh-from-clipping-plane-intersection-vertices/65756 "2024-05-26T13:07:01Z")

</div>

I’m looking to add a new mesh built from points of intersection to achieve a “cross-section” like effect, similar to what can be found in the example here: three.js examples and here using bvh: three-mesh-bvh - Clippe…

---

## [Why can't my intersect boxes for my GLTF/FBX models detect collision?](https://discourse.threejs.org/t/why-cant-my-intersect-boxes-for-my-gltf-fbx-models-detect-collision/65130)

<div class="topic-metadata">

**Author:** [@Benjamin\_THAM](https://discourse.threejs.org/u/Benjamin_THAM)\
**Replies:** 9\
**Last updated:** [May 12, 2024, 7:20pm UTC](https://discourse.threejs.org/t/why-cant-my-intersect-boxes-for-my-gltf-fbx-models-detect-collision/65130 "2024-05-12T19:20:10Z")

</div>

Im new to threejs, so sorry for newbie question. I’m not sure why my intersect for box3 bounding boxes for my GLTF model and FBX model detect a collision. I drew a helper box around to make sure my GLTF model’s bounding…

---

## [Moller-Trombore to determine intersection with THREE.Triangle](https://discourse.threejs.org/t/moller-trombore-to-determine-intersection-with-three-triangle/60889)

<div class="topic-metadata">

**Author:** [@collinhansen](https://discourse.threejs.org/u/collinhansen)\
**Replies:** 3\
**Last updated:** [January 31, 2024, 9:58am UTC](https://discourse.threejs.org/t/moller-trombore-to-determine-intersection-with-three-triangle/60889 "2024-01-31T09:58:42Z")

</div>

Hello. I have written a class which creates a sparsely populated static spatial index with the geometry data parsed from a loaded glb… The values of this index are Triangles… The glb exported from blender has been valida…

---

## [Intersection between 2 objects](https://discourse.threejs.org/t/intersection-between-2-objects/59323)

<div class="topic-metadata">

**Author:** [@HMb\_Mead](https://discourse.threejs.org/u/HMb_Mead)\
**Replies:** 3\
**Last updated:** [December 18, 2023, 1:46pm UTC](https://discourse.threejs.org/t/intersection-between-2-objects/59323 "2023-12-18T13:46:18Z")

</div>

hi I’m new with three.js and face problem I will appreciate any help the problem is I have ball moving in helix path and collide with plane I will stopped the ball at this point my equation is how to find intersection p…

---

## [Raycast collisions with xr controller not working](https://discourse.threejs.org/t/raycast-collisions-with-xr-controller-not-working/41586)

<div class="topic-metadata">

**Author:** [@thispatcher](https://discourse.threejs.org/u/thispatcher)\
**Replies:** 4\
**Last updated:** [September 20, 2023, 9:12am UTC](https://discourse.threejs.org/t/raycast-collisions-with-xr-controller-not-working/41586 "2023-09-20T09:12:11Z")

</div>

I’m able to get raycast collision detection working in my scene when using a mouse, as depicted in the first codeblock below. However, I haven’t been able to get a raycaster to intersect with objects in my scene while in…

---

## [BufferGeometry intersection with three-csg-ts - volume calculation](https://discourse.threejs.org/t/buffergeometry-intersection-with-three-csg-ts-volume-calculation/48261)

<div class="topic-metadata">

**Author:** [@wojciechteclaw](https://discourse.threejs.org/u/wojciechteclaw)\
**Replies:** 3\
**Last updated:** [February 24, 2023, 6:58pm UTC](https://discourse.threejs.org/t/buffergeometry-intersection-with-three-csg-ts-volume-calculation/48261 "2023-02-24T18:58:44Z")

</div>

Hello All, I work with web-ifc, which uses the three.js. At some point, I want to compare two objects. For this purpose, I’m using three-csg-ts library. And the following function: public static compareTwoGeometryRepre…

---

## [Intersection between two objects](https://discourse.threejs.org/t/intersection-between-two-objects/47301)

<div class="topic-metadata">

**Author:** [@dogukancl](https://discourse.threejs.org/u/dogukancl)\
**Replies:** 2\
**Last updated:** [January 26, 2023, 3:31pm UTC](https://discourse.threejs.org/t/intersection-between-two-objects/47301 "2023-01-26T15:31:42Z")

</div>

I am trying to find intersections between two objects to be able to put objects to the correct place. Check the image below, the yellow squares are the objects that i want to intersect and put them in the brown area on…

---

## [Raycaster intersection with morphTarget](https://discourse.threejs.org/t/raycaster-intersection-with-morphtarget/3527)

<div class="topic-metadata">

**Author:** [@jds580s](https://discourse.threejs.org/u/jds580s)\
**Replies:** 4\
**Last updated:** [January 16, 2023, 2:09pm UTC](https://discourse.threejs.org/t/raycaster-intersection-with-morphtarget/3527 "2023-01-16T14:09:51Z")

</div>

I am trying to allow the user to click on an object that is also modified by morphTargetInfluences. What I am finding is that it’s very difficult to click on the target as the target area is the unmorphed shape. I beli…

---

## [Remove objects that intersect](https://discourse.threejs.org/t/remove-objects-that-intersect/45115)

<div class="topic-metadata">

**Author:** [@Teymoor](https://discourse.threejs.org/u/Teymoor)\
**Replies:** 8\
**Last updated:** [November 26, 2022, 1:31am UTC](https://discourse.threejs.org/t/remove-objects-that-intersect/45115 "2022-11-26T01:31:23Z")

</div>

How can I remove the cubes that intersect with the model? example

---

## [Is there a way to see with what a certain gemoetry is intersecting with](https://discourse.threejs.org/t/is-there-a-way-to-see-with-what-a-certain-gemoetry-is-intersecting-with/43829)

<div class="topic-metadata">

**Author:** [@zgodni](https://discourse.threejs.org/u/zgodni)\
**Replies:** 1\
**Last updated:** [October 21, 2022, 6:03am UTC](https://discourse.threejs.org/t/is-there-a-way-to-see-with-what-a-certain-gemoetry-is-intersecting-with/43829 "2022-10-21T06:03:12Z")

</div>

If we take into consideration the example above is there a way I could get the id of which geometry is intersecting with which. For example, the geometry with the id of 1 is intersecting with the geometry of id 3, and…

---

## [Raycast issues when used for point in object detection](https://discourse.threejs.org/t/raycast-issues-when-used-for-point-in-object-detection/38551)

<div class="topic-metadata">

**Author:** [@gilad](https://discourse.threejs.org/u/gilad)\
**Replies:** 0\
**Last updated:** [May 26, 2022, 3:10pm UTC](https://discourse.threejs.org/t/raycast-issues-when-used-for-point-in-object-detection/38551 "2022-05-26T15:10:43Z")

</div>

Hello, I’m working on a CSG library and I am trying to use Raycast to determine if a triangle is inside or outside of the target object (mesh) by checking if the triangle’s mid point is inside or not. For the most part…

---

## [How to determine whether a line segment intersects a frustum?](https://discourse.threejs.org/t/how-to-determine-whether-a-line-segment-intersects-a-frustum/28505)

<div class="topic-metadata">

**Author:** [@Mehdi\_Esfahani](https://discourse.threejs.org/u/Mehdi_Esfahani)\
**Replies:** 5\
**Last updated:** [March 31, 2022, 1:43pm UTC](https://discourse.threejs.org/t/how-to-determine-whether-a-line-segment-intersects-a-frustum/28505 "2022-03-31T13:43:39Z")

</div>

I need to be able to determine whether the straight line between two points (segment), crosses the space inside a frustum (intersects the frustum). I’ve looked into the APIs offered by THREE.js and haven’t been able to f…

---

## [Plane intersects mesh with three.js r125](https://discourse.threejs.org/t/plane-intersects-mesh-with-three-js-r125/34543)

<div class="topic-metadata">

**Author:** [@GoupilSystem](https://discourse.threejs.org/u/GoupilSystem)\
**Replies:** 5\
**Last updated:** [February 8, 2022, 8:59pm UTC](https://discourse.threejs.org/t/plane-intersects-mesh-with-three-js-r125/34543 "2022-02-08T20:59:45Z")

</div>

Hi, I’m trying to adapt this example PointsGroupingCutPlane to .r125. So far, when I’m doing such a thing, I use this link as a ref Updating THREE.Geometry to THREE.BufferGeometry - Three.js Tutorials, but for a line l…

---

## [Geometry operations like intersecting in splitting in Three.js](https://discourse.threejs.org/t/geometry-operations-like-intersecting-in-splitting-in-three-js/33355)

<div class="topic-metadata">

**Author:** [@NHQue](https://discourse.threejs.org/u/NHQue)\
**Replies:** 2\
**Last updated:** [January 6, 2022, 5:43pm UTC](https://discourse.threejs.org/t/geometry-operations-like-intersecting-in-splitting-in-three-js/33355 "2022-01-06T17:43:22Z")

</div>

Hey there, I am coming from a Rhino 3D background and I am currently diving into the wonderful world of Three.js :slightly\_smiling\_face: For my project I am in need for some functions (only for 2D problems right now) t…

---

## [How to get intersecting geometry of two mesh geometries](https://discourse.threejs.org/t/how-to-get-intersecting-geometry-of-two-mesh-geometries/32768)

<div class="topic-metadata">

**Author:** [@Alex27](https://discourse.threejs.org/u/Alex27)\
**Replies:** 1\
**Last updated:** [December 17, 2021, 8:04pm UTC](https://discourse.threejs.org/t/how-to-get-intersecting-geometry-of-two-mesh-geometries/32768 "2021-12-17T20:04:06Z")

</div>

Hi folks, I’m quite new to Three.js and I am trying to figure out how to get the intersecting surface of two geometries (meshes). In my case, in the field of architecture, I am interested in getting the intersections of…

---

## [【Question】About line's intersection point](https://discourse.threejs.org/t/question-about-lines-intersection-point/29827)

<div class="topic-metadata">

**Author:** [@JohnConstantine](https://discourse.threejs.org/u/JohnConstantine)\
**Replies:** 3\
**Last updated:** [September 13, 2021, 8:33am UTC](https://discourse.threejs.org/t/question-about-lines-intersection-point/29827 "2021-09-13T08:33:16Z")

</div>

Hi there! Im trying to find out which faces and points are intersected by the 3D curve. codes can be found in Three default - JSFiddle - Code Playground I looked into three.js docs Raycaster but it used for mouse pi…

---

## [\[SOLVED\] Orient plane to intersected face normal and direction vector](https://discourse.threejs.org/t/solved-orient-plane-to-intersected-face-normal-and-direction-vector/29569)

<div class="topic-metadata">

**Author:** [@Lawrence3DPK](https://discourse.threejs.org/u/Lawrence3DPK)\
**Replies:** 3\
**Last updated:** [September 4, 2021, 10:33am UTC](https://discourse.threejs.org/t/solved-orient-plane-to-intersected-face-normal-and-direction-vector/29569 "2021-09-04T10:33:55Z")

</div>

hey, i’ve been trying to figure out how to create and orient a plane between a previosly intersected point (Vector3 saved as a variable) and my next intersection point… see image… the blue point with the red plane p…

---

## [Raycaster intersections after TransformControls rotation](https://discourse.threejs.org/t/raycaster-intersections-after-transformcontrols-rotation/29000)

<div class="topic-metadata">

**Author:** [@jxt](https://discourse.threejs.org/u/jxt)\
**Replies:** 1\
**Last updated:** [August 17, 2021, 9:34pm UTC](https://discourse.threejs.org/t/raycaster-intersections-after-transformcontrols-rotation/29000 "2021-08-17T21:34:13Z")

</div>

I have a scene with a bunch of meshes in a mesh group. When moving the mouse, I can get the intersection points and objects from a raycaster all in the normal way, all of which works just fine. But if I perform a rotatio…

---

## [Creating new BufferGeometry from an array of intersected faces ( \`intersects\[ 0 \].face\` )](https://discourse.threejs.org/t/creating-new-buffergeometry-from-an-array-of-intersected-faces-intersects-0-face/27702)

<div class="topic-metadata">

**Author:** [@Lawrence3DPK](https://discourse.threejs.org/u/Lawrence3DPK)\
**Replies:** 1\
**Last updated:** [July 2, 2021, 3:51pm UTC](https://discourse.threejs.org/t/creating-new-buffergeometry-from-an-array-of-intersected-faces-intersects-0-face/27702 "2021-07-02T15:51:18Z")

</div>

I’m wondering if someone could give me a little help creating a new buffer geometry from a selection of positions from an already existing buffer geometry, i am working in this live example and have been going nuts on it…

---

## [Detect if faces on buffer geometry overlap](https://discourse.threejs.org/t/detect-if-faces-on-buffer-geometry-overlap/27613)

<div class="topic-metadata">

**Author:** [@Lawrence3DPK](https://discourse.threejs.org/u/Lawrence3DPK)\
**Replies:** 1\
**Last updated:** [June 29, 2021, 4:00pm UTC](https://discourse.threejs.org/t/detect-if-faces-on-buffer-geometry-overlap/27613 "2021-06-29T16:00:23Z")

</div>

hello lovely people, i have created a simple demo here… i have set it up so if the big boolen button (top left) is clicked, a new CSG union mesh is created and added to the scene, then when the “detect / remove faces…

---

## [How can I get clicked positions in Intersection](https://discourse.threejs.org/t/how-can-i-get-clicked-positions-in-intersection/25249)

<div class="topic-metadata">

**Author:** [@Sherzod\_Mamatmurodov](https://discourse.threejs.org/u/Sherzod_Mamatmurodov)\
**Replies:** 0\
**Last updated:** [April 11, 2021, 7:02am UTC](https://discourse.threejs.org/t/how-can-i-get-clicked-positions-in-intersection/25249 "2021-04-11T07:02:09Z")

</div>

Hi, I am trying to get the size of two points, which I made by clicking an object. But The (STL) object is situated in ( \< div \< ) container which does not have 100% width and height. The container has like (W: 800px H: …

---

## [Getting multiple face indexes by intersecting with a circle](https://discourse.threejs.org/t/getting-multiple-face-indexes-by-intersecting-with-a-circle/22583)

<div class="topic-metadata">

**Author:** [@ibrahimunal](https://discourse.threejs.org/u/ibrahimunal)\
**Replies:** 0\
**Last updated:** [January 19, 2021, 12:30pm UTC](https://discourse.threejs.org/t/getting-multiple-face-indexes-by-intersecting-with-a-circle/22583 "2021-01-19T12:30:33Z")

</div>

Hi everyone, I managed to give color to faces with raycasting. I get face indexes and update their colors. However, I am able to update them one by one. What I try to do is having a marker (circle and resizable ) around …

---

## [intersectObjects(scne.children) does not work](https://discourse.threejs.org/t/intersectobjects-scne-children-does-not-work/22499)

<div class="topic-metadata">

**Author:** [@Hamid\_Shah](https://discourse.threejs.org/u/Hamid_Shah)\
**Replies:** 6\
**Last updated:** [January 18, 2021, 7:13pm UTC](https://discourse.threejs.org/t/intersectobjects-scne-children-does-not-work/22499 "2021-01-18T19:13:27Z")

</div>

A beginner question : how can i push scene.childern to an array and pass the array to intersect.objects because it seems that intersect does not recognize scene.children objects in blow function onMouseMove(e) { let m…

---

## [How do I paint a model using Raycasting?](https://discourse.threejs.org/t/how-do-i-paint-a-model-using-raycasting/21994)

<div class="topic-metadata">

**Author:** [@ibrahimunal](https://discourse.threejs.org/u/ibrahimunal)\
**Replies:** 1\
**Last updated:** [December 28, 2020, 10:50pm UTC](https://discourse.threejs.org/t/how-do-i-paint-a-model-using-raycasting/21994 "2020-12-28T22:50:06Z")

</div>

Hello, everyone, I have a 3D model to paint. I decided to create a function that sticks colorful spheres on the model by using the intersection method. This is how I decided to paint it with click events. function getIn…

[Next page](https://discourse.threejs.org/tag/intersection/456.md?match_all_tags=true&page=1&tags%5B%5D=intersection)
