# \#torusgeometry

**URL:** https://discourse.threejs.org/tag/torusgeometry/1592.md

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

---

## [How to modify the source code of TorusGeometry to close both ends?](https://discourse.threejs.org/t/how-to-modify-the-source-code-of-torusgeometry-to-close-both-ends/64297)

<div class="topic-metadata">

**Author:** [@Joe\_Perry](https://discourse.threejs.org/u/Joe_Perry)\
**Replies:** 4\
**Last updated:** [April 22, 2024, 9:58am UTC](https://discourse.threejs.org/t/how-to-modify-the-source-code-of-torusgeometry-to-close-both-ends/64297 "2024-04-22T09:58:54Z")

</div>

Hi everyone, I’m trying to modify the source code of TorusGeometry in Three.js in order to make the rendered torus closed on both ends. I have looked at the source code of CylinderGeometry and I understand that the key …
