# \#triangle

**URL:** https://discourse.threejs.org/tag/triangle/934.md

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

---

## [How to prevent fully occluded objects from being rendered to reduce triangle count in Three.js?](https://discourse.threejs.org/t/how-to-prevent-fully-occluded-objects-from-being-rendered-to-reduce-triangle-count-in-three-js/80071)

<div class="topic-metadata">

**Author:** [@wildy13](https://discourse.threejs.org/u/wildy13)\
**Replies:** 3\
**Last updated:** [March 25, 2025, 9:02am UTC](https://discourse.threejs.org/t/how-to-prevent-fully-occluded-objects-from-being-rendered-to-reduce-triangle-count-in-three-js/80071 "2025-03-25T09:02:20Z")

</div>

I am developing a multiplayer XR (VR/AR) experience in Three.js, where multiple players interact with each other in real-time. Each player has a main object (e.g., a character or avatar) that is rendered in the scene. Th…

---

## [How do I rotate a triangle such that all of its points have the same z value](https://discourse.threejs.org/t/how-do-i-rotate-a-triangle-such-that-all-of-its-points-have-the-same-z-value/72102)

<div class="topic-metadata">

**Author:** [@Hornet](https://discourse.threejs.org/u/Hornet)\
**Replies:** 19\
**Last updated:** [September 30, 2024, 5:48pm UTC](https://discourse.threejs.org/t/how-do-i-rotate-a-triangle-such-that-all-of-its-points-have-the-same-z-value/72102 "2024-09-30T17:48:36Z")

</div>

Hi, everyone. Kinda noob question here but I’m having trouble figuring this out. I have a triangle object that I need to rotate such that all points ends up having the same z values with respect to one of its points. O…

---

## [Correct way to iterate over all faces of an object?](https://discourse.threejs.org/t/correct-way-to-iterate-over-all-faces-of-an-object/68314)

<div class="topic-metadata">

**Author:** [@naruto](https://discourse.threejs.org/u/naruto)\
**Replies:** 3\
**Last updated:** [July 18, 2024, 11:30pm UTC](https://discourse.threejs.org/t/correct-way-to-iterate-over-all-faces-of-an-object/68314 "2024-07-18T23:30:10Z")

</div>

Hello. I’m very new to this technology, so I would appreciate patience. I’m not sure how to obtain positions and info of every face of a given mesh. I can obtain individual vertices through geometry.attributes.position.…

---

## [Different number of triangles in a scene with gltf model](https://discourse.threejs.org/t/different-number-of-triangles-in-a-scene-with-gltf-model/64095)

<div class="topic-metadata">

**Author:** [@DizelArs](https://discourse.threejs.org/u/DizelArs)\
**Replies:** 6\
**Last updated:** [April 15, 2024, 12:29pm UTC](https://discourse.threejs.org/t/different-number-of-triangles-in-a-scene-with-gltf-model/64095 "2024-04-15T12:29:25Z")

</div>

Hey, everybody! I’m currently learning three.js, and I’ve encountered an inconsistency in displaying the number of triangles in a sketchfab model, I’m trying to find the cause. For study and tests I chose a model from …

---

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

---

## [select multiple faces around raycaster face, but under complex geometric conditions, the program runs for too long or even gets stuck](https://discourse.threejs.org/t/select-multiple-faces-around-raycaster-face-but-under-complex-geometric-conditions-the-program-runs-for-too-long-or-even-gets-stuck/51899)

<div class="topic-metadata">

**Author:** [@carson](https://discourse.threejs.org/u/carson)\
**Replies:** 4\
**Last updated:** [May 29, 2023, 1:14am UTC](https://discourse.threejs.org/t/select-multiple-faces-around-raycaster-face-but-under-complex-geometric-conditions-the-program-runs-for-too-long-or-even-gets-stuck/51899 "2023-05-29T01:14:10Z")

</div>

Hi guys,I write a case that show multiple faces around raycaster face according to normal and shared Vertex, but the function cost too long time especially in complex situations. I wanna share my case and …

---

## [Threejs, latest version. Make triangle geometry](https://discourse.threejs.org/t/threejs-latest-version-make-triangle-geometry/48796)

<div class="topic-metadata">

**Author:** [@hermann](https://discourse.threejs.org/u/hermann)\
**Replies:** 1\
**Last updated:** [March 7, 2023, 2:34pm UTC](https://discourse.threejs.org/t/threejs-latest-version-make-triangle-geometry/48796 "2023-03-07T14:34:39Z")

</div>

I am trying to make a triangle, after updating to the latest Threejs. Where I am making the geometry for the triangle, I can put: var geometry=new THREE.BoxBufferGeometry(1000,1000,1000); And then it draws a box perfe…

---

## [Double triangles after Version update](https://discourse.threejs.org/t/double-triangles-after-version-update/34360)

<div class="topic-metadata">

**Author:** [@Frank\_Decker](https://discourse.threejs.org/u/Frank_Decker)\
**Replies:** 9\
**Last updated:** [February 4, 2022, 8:49am UTC](https://discourse.threejs.org/t/double-triangles-after-version-update/34360 "2022-02-04T08:49:36Z")

</div>

After updating greater than V0.128.0, I’ve got double amount of triangles and also performance issues. The fps was halved. Actually I used the version 0.137.4. I’ve comared the render information about my scene between…

---

## [FPS Drop With Lower Object Count](https://discourse.threejs.org/t/fps-drop-with-lower-object-count/28456)

<div class="topic-metadata">

**Author:** [@mlelyakan](https://discourse.threejs.org/u/mlelyakan)\
**Replies:** 12\
**Last updated:** [August 6, 2021, 10:17pm UTC](https://discourse.threejs.org/t/fps-drop-with-lower-object-count/28456 "2021-08-06T22:17:18Z")

</div>

Hi Experts, I’ve designed a 3D model with Blender program. When I import my model to three js project I’m faced with low fps issue. I’ve checked the object count in scene and triangles. The object count seems to be 324.…

---

## [How get faces( triangle ) data from buffergeometry](https://discourse.threejs.org/t/how-get-faces-triangle-data-from-buffergeometry/22906)

<div class="topic-metadata">

**Author:** [@DiacoML](https://discourse.threejs.org/u/DiacoML)\
**Replies:** 3\
**Last updated:** [January 28, 2021, 9:56am UTC](https://discourse.threejs.org/t/how-get-faces-triangle-data-from-buffergeometry/22906 "2021-01-28T09:56:37Z")

</div>

Hey guys, How can I get faces data ( a,b,c vectors ) to generate Triangle from buffergeometry loaded via GLTF ? I tried with Index data but just got wrong results :confused:

---

## [How to use THREE.triangle .setFromPointsAndIndices()](https://discourse.threejs.org/t/how-to-use-three-triangle-setfrompointsandindices/22137)

<div class="topic-metadata">

**Author:** [@gja2nd](https://discourse.threejs.org/u/gja2nd)\
**Replies:** 1\
**Last updated:** [January 4, 2021, 10:35pm UTC](https://discourse.threejs.org/t/how-to-use-three-triangle-setfrompointsandindices/22137 "2021-01-04T22:35:38Z")

</div>

Hello, Does anyone have an example of how to use .setFromPointsAndIndices() correctly? I have a BufferGeometry and want to use it’s index vertices to make a triangle. var pos = threeMesh1.geometry.index; var tri = new…
