# \#bounding-box

**URL:** https://discourse.threejs.org/tag/bounding-box/328.md

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

---

## [A construction-style web app (like building a cabin)](https://discourse.threejs.org/t/a-construction-style-web-app-like-building-a-cabin/87094)

<div class="topic-metadata">

**Author:** [@Parisa\_Shahbazi](https://discourse.threejs.org/u/Parisa_Shahbazi)\
**Replies:** 3\
**Last updated:** [September 21, 2025, 5:18am UTC](https://discourse.threejs.org/t/a-construction-style-web-app-like-building-a-cabin/87094 "2025-09-21T05:18:21Z")

</div>

Hi everyone, I’m building a web-based construction app using Three.js where users can create structures like a cabin. What is the best way to: Draw walls (e.g., click-drag to create rectangular walls). Allow real…

---

## [What does calling InstancedMesh.computeBoundingBox() actually do?](https://discourse.threejs.org/t/what-does-calling-instancedmesh-computeboundingbox-actually-do/86514)

<div class="topic-metadata">

**Author:** [@torrent](https://discourse.threejs.org/u/torrent)\
**Replies:** 2\
**Last updated:** [August 25, 2025, 5:31am UTC](https://discourse.threejs.org/t/what-does-calling-instancedmesh-computeboundingbox-actually-do/86514 "2025-08-25T05:31:23Z")

</div>

Here is the description for InstancedMesh.computeBoundingBox(): InstancedMesh.computeBoundingBox() Computes the bounding box of the instanced mesh, and updates InstancedMesh.boundingBox. The bounding box is not automa…

---

## [R3F: Calculate the absolute (relative to the center of the scene) position of a mesh deeply nested in a GLTF model](https://discourse.threejs.org/t/r3f-calculate-the-absolute-relative-to-the-center-of-the-scene-position-of-a-mesh-deeply-nested-in-a-gltf-model/73152)

<div class="topic-metadata">

**Author:** [@cubernez](https://discourse.threejs.org/u/cubernez)\
**Replies:** 4\
**Last updated:** [October 24, 2024, 7:36am UTC](https://discourse.threejs.org/t/r3f-calculate-the-absolute-relative-to-the-center-of-the-scene-position-of-a-mesh-deeply-nested-in-a-gltf-model/73152 "2024-10-24T07:36:23Z")

</div>

Hello, I’m quite new to R3F and Three in general and I’m trying to calculate the position relative to the scene of a mesh that is part of a bigger gltf model. I loaded the model using: https://gltf.pmnd.rs/. When I cl…

---

## [Different size in Blender and Three.js (Dimension)](https://discourse.threejs.org/t/different-size-in-blender-and-three-js-dimension/72138)

<div class="topic-metadata">

**Author:** [@Parisa\_Shahbazi](https://discourse.threejs.org/u/Parisa_Shahbazi)\
**Replies:** 4\
**Last updated:** [October 1, 2024, 12:01pm UTC](https://discourse.threejs.org/t/different-size-in-blender-and-three-js-dimension/72138 "2024-10-01T12:01:47Z")

</div>

Hi guys. .I have a 3D model in Three.js and dimension of my floor is :slight\_smile: dimension in blender \>\>\> x: 6.3metr , y:0metr , z: 6.71metr In three.js I use this code: // Calculate the mesh size along the des…

---

## [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 to dynamically shape geometry, define labeling positions, and obtain edge positions in geometry.](https://discourse.threejs.org/t/how-to-dynamically-shape-geometry-define-labeling-positions-and-obtain-edge-positions-in-geometry/70477)

<div class="topic-metadata">

**Author:** [@AkashGuptaEmk\_AkEmk](https://discourse.threejs.org/u/AkashGuptaEmk_AkEmk)\
**Replies:** 0\
**Last updated:** [September 9, 2024, 10:22am UTC](https://discourse.threejs.org/t/how-to-dynamically-shape-geometry-define-labeling-positions-and-obtain-edge-positions-in-geometry/70477 "2024-09-09T10:22:35Z")

</div>

kindly check the rivet shape and how to labeling cylinder and hemisphere top radius. @mrdoob @Nishant\_Mishra

---

## [Bounding box calculation not correct based on Blender glb export](https://discourse.threejs.org/t/bounding-box-calculation-not-correct-based-on-blender-glb-export/69317)

<div class="topic-metadata">

**Author:** [@stickske](https://discourse.threejs.org/u/stickske)\
**Replies:** 3\
**Last updated:** [August 15, 2024, 6:22pm UTC](https://discourse.threejs.org/t/bounding-box-calculation-not-correct-based-on-blender-glb-export/69317 "2024-08-15T18:22:01Z")

</div>

I have a problem when exporting a box from Blender to \*.glb and calculate it’s BBOX in ThreeJs. When using the exported box in ThreeJs the boundingbox seems to keep the world zero point in its calculation. Not sure why. …

---

## [Positioning camera according to size of the object](https://discourse.threejs.org/t/positioning-camera-according-to-size-of-the-object/38309)

<div class="topic-metadata">

**Author:** [@binoy\_t](https://discourse.threejs.org/u/binoy_t)\
**Replies:** 7\
**Last updated:** [August 12, 2024, 11:43pm UTC](https://discourse.threejs.org/t/positioning-camera-according-to-size-of-the-object/38309 "2024-08-12T23:43:14Z")

</div>

Hi, I am trying to load gltf models using gltf-loader. currently, I am positioning the camera by multiplying the max vector of the bounding box, but the issue with the current implementation is that when the size of the…

---

## [How o accuratley calculate the size of Line2 mesh and Boxgeometry?](https://discourse.threejs.org/t/how-o-accuratley-calculate-the-size-of-line2-mesh-and-boxgeometry/68310)

<div class="topic-metadata">

**Author:** [@any\_post](https://discourse.threejs.org/u/any_post)\
**Replies:** 3\
**Last updated:** [July 19, 2024, 8:53am UTC](https://discourse.threejs.org/t/how-o-accuratley-calculate-the-size-of-line2-mesh-and-boxgeometry/68310 "2024-07-19T08:53:54Z")

</div>

I currently have one mesh with LineSegmets and another with BoxGeometry since I have a requirement where I need to check the bounding box size of the mesh and return mesh that has a tiny bounding box. basically the small…

---

## [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…

---

## [Bounding box while applying transformation to model](https://discourse.threejs.org/t/bounding-box-while-applying-transformation-to-model/51264)

<div class="topic-metadata">

**Author:** [@Suresh\_Kumar](https://discourse.threejs.org/u/Suresh_Kumar)\
**Replies:** 5\
**Last updated:** [July 10, 2024, 3:13am UTC](https://discourse.threejs.org/t/bounding-box-while-applying-transformation-to-model/51264 "2024-07-10T03:13:41Z")

</div>

I am uploading stl file to the scene using stlLoader and drawing bounding box using BoxHelper. Below is the screen shot while uploading the model , if you see , bounding box is touching the model in all the sides cor…

---

## [How to limit moving decal on a mesh?How to find exact position of the sides of each mesh؟](https://discourse.threejs.org/t/how-to-limit-moving-decal-on-a-mesh-how-to-find-exact-position-of-the-sides-of-each-mesh/67048)

<div class="topic-metadata">

**Author:** [@Parisa\_Shahbazi](https://discourse.threejs.org/u/Parisa_Shahbazi)\
**Replies:** 2\
**Last updated:** [June 30, 2024, 5:27am UTC](https://discourse.threejs.org/t/how-to-limit-moving-decal-on-a-mesh-how-to-find-exact-position-of-the-sides-of-each-mesh/67048 "2024-06-30T05:27:30Z")

</div>

Hi. I am creating a 3d T-shirt configurator and for design images and texts on it I use decalGeometry. You can imagine that we want to control the position of one mesh in the scene upon another mesh. How Can I do that…

---

## [Fit projected/'perceived' bounds of mesh into viewport](https://discourse.threejs.org/t/fit-projected-perceived-bounds-of-mesh-into-viewport/65890)

<div class="topic-metadata">

**Author:** [@kikedao](https://discourse.threejs.org/u/kikedao)\
**Replies:** 8\
**Last updated:** [May 30, 2024, 12:54pm UTC](https://discourse.threejs.org/t/fit-projected-perceived-bounds-of-mesh-into-viewport/65890 "2024-05-30T12:54:56Z")

</div>

Hi all! This problem is driving me crazy: I have a scene with an Orthographic camera setup so the scene looks isometric. I want to be able to fit the contents of the scene to the viewport by only setting the camera zo…

---

## [Box3.setFromObject(parent): scene.add(box) vs. parent.add(box)](https://discourse.threejs.org/t/box3-setfromobject-parent-scene-add-box-vs-parent-add-box/64817)

<div class="topic-metadata">

**Author:** [@cdxj](https://discourse.threejs.org/u/cdxj)\
**Replies:** 7\
**Last updated:** [May 1, 2024, 10:46pm UTC](https://discourse.threejs.org/t/box3-setfromobject-parent-scene-add-box-vs-parent-add-box/64817 "2024-05-01T22:46:29Z")

</div>

Hello, Can someone please explain the logic behind the .add() function? The documentation isn’t very clear on this. I am trying to create a child bounding box and add it to the parent object from which the bounding box…

---

## [Bounding Box not appearing, useHelper](https://discourse.threejs.org/t/bounding-box-not-appearing-usehelper/63753)

<div class="topic-metadata">

**Author:** [@rookie101](https://discourse.threejs.org/u/rookie101)\
**Replies:** 0\
**Last updated:** [April 6, 2024, 11:05pm UTC](https://discourse.threejs.org/t/bounding-box-not-appearing-usehelper/63753 "2024-04-06T23:05:52Z")

</div>

I want to see the Bounding Box of my mesh, here is what I have. const head1Box = new THREE.Box3(); head1Box.setFromObject(nodes.table\_A\_Head\_1, true); useHelper(head1Box, THREE.Box3Helper, "cyan"); When I log bas…

---

## [Collision issue between Box3 that have undergone rotations along x, y, or z](https://discourse.threejs.org/t/collision-issue-between-box3-that-have-undergone-rotations-along-x-y-or-z/60113)

<div class="topic-metadata">

**Author:** [@theo\_vigneron](https://discourse.threejs.org/u/theo_vigneron)\
**Replies:** 3\
**Last updated:** [January 9, 2024, 9:28pm UTC](https://discourse.threejs.org/t/collision-issue-between-box3-that-have-undergone-rotations-along-x-y-or-z/60113 "2024-01-09T21:28:34Z")

</div>

Hello, I have a problem and I would like you to help me solve it. Currently, I am working on a project that requires an update regarding box collisions. Initially, I used the intersect function of Box3 . Now, they want …

---

## [BoundingSpheres for floating point origin meshes](https://discourse.threejs.org/t/boundingspheres-for-floating-point-origin-meshes/59531)

<div class="topic-metadata">

**Author:** [@Attila\_Schroeder](https://discourse.threejs.org/u/Attila_Schroeder)\
**Replies:** 0\
**Last updated:** [December 21, 2023, 4:36pm UTC](https://discourse.threejs.org/t/boundingspheres-for-floating-point-origin-meshes/59531 "2023-12-21T16:36:25Z")

</div>

I use a floating point origin to improve the precision with large numbers. In itself it’s nothing complicated. To do this I essentially have to make the camera the origin of my meshes at every interval. This is what I do…

---

## [Find the size of a loaded GLTF model](https://discourse.threejs.org/t/find-the-size-of-a-loaded-gltf-model/38515)

<div class="topic-metadata">

**Author:** [@Jablonski](https://discourse.threejs.org/u/Jablonski)\
**Replies:** 2\
**Last updated:** [November 3, 2023, 12:53pm UTC](https://discourse.threejs.org/t/find-the-size-of-a-loaded-gltf-model/38515 "2023-11-03T12:53:11Z")

</div>

Hi! I’m trying to figure out a way to get the size of any GLTF model loaded into the application. I want to use this to make a calculation to position the camera at a distance that shows the entire model, regardless if …

---

## [How to have a bounding box fitting meshes group following shapes](https://discourse.threejs.org/t/how-to-have-a-bounding-box-fitting-meshes-group-following-shapes/57499)

<div class="topic-metadata">

**Author:** [@Arnaud\_Coutant](https://discourse.threejs.org/u/Arnaud_Coutant)\
**Replies:** 2\
**Last updated:** [October 29, 2023, 2:02pm UTC](https://discourse.threejs.org/t/how-to-have-a-bounding-box-fitting-meshes-group-following-shapes/57499 "2023-10-29T14:02:46Z")

</div>

I am currently looking to create a backplane behind my meshes. The backplane would follow the shape of meshes at the extremity of group. Below a example of what I try to do. Green line (border of a plane) could be more …

---

## [Do I have to set boundingSpheres differently after init?](https://discourse.threejs.org/t/do-i-have-to-set-boundingspheres-differently-after-init/57140)

<div class="topic-metadata">

**Author:** [@Attila\_Schroeder](https://discourse.threejs.org/u/Attila_Schroeder)\
**Replies:** 3\
**Last updated:** [October 18, 2023, 8:55pm UTC](https://discourse.threejs.org/t/do-i-have-to-set-boundingspheres-differently-after-init/57140 "2023-10-18T20:55:18Z")

</div>

I create mathematical geometries. I would like to create suitable boundingSperes for these. This works if I set the boundingSphere during initialization. \_Init(params) { this.geometry\_ = new THREE.BufferGeometry(); …

---

## [Using Box3.expandByObject for SkinnedMesh considers its transform](https://discourse.threejs.org/t/using-box3-expandbyobject-for-skinnedmesh-considers-its-transform/52795)

<div class="topic-metadata">

**Author:** [@0b5vr](https://discourse.threejs.org/u/0b5vr)\
**Replies:** 4\
**Last updated:** [June 15, 2023, 5:36am UTC](https://discourse.threejs.org/t/using-box3-expandbyobject-for-skinnedmesh-considers-its-transform/52795 "2023-06-15T05:36:09Z")

</div>

When I use Box3.expandByObject (or Box3.setFromObject) for SkinnedMeshes, it considers the world transform of the skinned mesh. I know it’s invalid or inappropriate to put a transform to SkinnedMeshes, yes. But I though…

---

## [BoundingBox Does Not Affect Occlusion Culling for the Model](https://discourse.threejs.org/t/boundingbox-does-not-affect-occlusion-culling-for-the-model/54050)

<div class="topic-metadata">

**Author:** [@MateuszWis](https://discourse.threejs.org/u/MateuszWis)\
**Replies:** 2\
**Last updated:** [July 21, 2023, 4:58am UTC](https://discourse.threejs.org/t/boundingbox-does-not-affect-occlusion-culling-for-the-model/54050 "2023-07-21T04:58:40Z")

</div>

here is my result: so i change the height of some of my geometry and camera culling acts like i never change them and the disapear near the bottom of my view Here is my code that changes geometry set height(value…

---

## [Bounding box bigger than concave object (ExtrudeGeometry)](https://discourse.threejs.org/t/bounding-box-bigger-than-concave-object-extrudegeometry/26073)

<div class="topic-metadata">

**Author:** [@Andrey](https://discourse.threejs.org/u/Andrey)\
**Replies:** 6\
**Last updated:** [July 14, 2023, 1:02pm UTC](https://discourse.threejs.org/t/bounding-box-bigger-than-concave-object-extrudegeometry/26073 "2023-07-14T13:02:08Z")

</div>

I create a rectangle with cut or rounded corners using ExtrudeGeometry and after rotating its mesh I get a bounding box larger than this geometry. If I rotate the geometry itself, the problem disappears, but when I group…

---

## [Fit HTLM div size with a THREE.JS mesh size](https://discourse.threejs.org/t/fit-htlm-div-size-with-a-three-js-mesh-size/53307)

<div class="topic-metadata">

**Author:** [@BlackU91](https://discourse.threejs.org/u/BlackU91)\
**Replies:** 0\
**Last updated:** [June 28, 2023, 7:45am UTC](https://discourse.threejs.org/t/fit-htlm-div-size-with-a-three-js-mesh-size/53307 "2023-06-28T07:45:38Z")

</div>

Hello, I am currently trying to fit an html div size with a mesh size. I am using Box3 to get the size of my object but it is not working and I don’t understand what I am missing. How can I get the correct size of my …

---

## [How to get the size of the loaded gltf object in pixels](https://discourse.threejs.org/t/how-to-get-the-size-of-the-loaded-gltf-object-in-pixels/52711)

<div class="topic-metadata">

**Author:** [@CodeSkool](https://discourse.threejs.org/u/CodeSkool)\
**Replies:** 10\
**Last updated:** [June 13, 2023, 8:51am UTC](https://discourse.threejs.org/t/how-to-get-the-size-of-the-loaded-gltf-object-in-pixels/52711 "2023-06-13T08:51:53Z")

</div>

How to get the size of the loaded gltf object in pixels. For example the canvas size is 480x360, how to get how long the object is on the canvas (i.e. pixels), the camera fov is 45, and z position is 20, rest 0. This g…

---

## [Bounding Box Transform Control](https://discourse.threejs.org/t/bounding-box-transform-control/20695)

<div class="topic-metadata">

**Author:** [@kisala.dawid](https://discourse.threejs.org/u/kisala.dawid)\
**Replies:** 4\
**Last updated:** [May 7, 2023, 7:48am UTC](https://discourse.threejs.org/t/bounding-box-transform-control/20695 "2023-05-07T07:48:41Z")

</div>

Do you know any ready-made solution to achieve such an effect? I especially care about transforming the 2d object (moving/rotating/scaling). Of course I know that there is TransformControl, but is there a possibility to …

---

## [How can i get the center of a boundingbox?](https://discourse.threejs.org/t/how-can-i-get-the-center-of-a-boundingbox/50303)

<div class="topic-metadata">

**Author:** [@Sterly\_Dolce](https://discourse.threejs.org/u/Sterly_Dolce)\
**Replies:** 3\
**Last updated:** [April 12, 2023, 11:45pm UTC](https://discourse.threejs.org/t/how-can-i-get-the-center-of-a-boundingbox/50303 "2023-04-12T23:45:18Z")

</div>

I used this code And yet i still get this error Please tell me what did i do wrong?

---

## [BoxHelper generates incorrect bounding box](https://discourse.threejs.org/t/boxhelper-generates-incorrect-bounding-box/31340)

<div class="topic-metadata">

**Author:** [@JRyanShue](https://discourse.threejs.org/u/JRyanShue)\
**Replies:** 3\
**Last updated:** [March 27, 2023, 11:00am UTC](https://discourse.threejs.org/t/boxhelper-generates-incorrect-bounding-box/31340 "2023-03-27T11:00:25Z")

</div>

Hi, I’ve been using Three.js for a project to prepare 3D models online for 3D printing. I’ve followed the solutions in similar questions but they don’t work. I’ve also taken a look at the Three.js editor itself, which ac…

---

## [BoundingBox wrong calculation with Skinned Meshes?](https://discourse.threejs.org/t/boundingbox-wrong-calculation-with-skinned-meshes/48204)

<div class="topic-metadata">

**Author:** [@cabada](https://discourse.threejs.org/u/cabada)\
**Replies:** 3\
**Last updated:** [February 19, 2023, 9:22pm UTC](https://discourse.threejs.org/t/boundingbox-wrong-calculation-with-skinned-meshes/48204 "2023-02-19T21:22:17Z")

</div>

I’m trying to find the bbox of a skinned mesh, but it’s giving weird results. Bbox is not correctly calculated: So I went thru the mesh, debugged it with it’s children… and all the inner bboxes looked like this: T…

---

## [Directly modifying the vertex coordinates in a buffer object](https://discourse.threejs.org/t/directly-modifying-the-vertex-coordinates-in-a-buffer-object/46504)

<div class="topic-metadata">

**Author:** [@oldman](https://discourse.threejs.org/u/oldman)\
**Replies:** 1\
**Last updated:** [January 4, 2023, 3:43pm UTC](https://discourse.threejs.org/t/directly-modifying-the-vertex-coordinates-in-a-buffer-object/46504 "2023-01-04T15:43:43Z")

</div>

Hello Folks, I have a situation where I am making changes to the vertex coordinates of a buffer geometry of a mesh object. After doing so, I make the following calls: thisGeometry.attributes.position.needsUpdate = tru…

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