# \#utility-function

**URL:** https://discourse.threejs.org/tag/utility-function/22.md

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

---

## [How to repeat the same object?](https://discourse.threejs.org/t/how-to-repeat-the-same-object/148)

<div class="topic-metadata">

**Author:** [@jamster1992](https://discourse.threejs.org/u/jamster1992)\
**Replies:** 2\
**Last updated:** [April 5, 2017, 12:31am UTC](https://discourse.threejs.org/t/how-to-repeat-the-same-object/148 "2017-04-05T00:31:08Z")

</div>

It would need to loop 12 ramparts, with the y position increasing by 8 every-time. Any help would be much appreciated. var rampart6 = createMesh(new THREE.CubeGeometry(2, 4, 6),"stone.jpg"); ra…

---

## [Object3D log function](https://discourse.threejs.org/t/object3d-log-function/109)

<div class="topic-metadata">

**Author:** [@looeee](https://discourse.threejs.org/u/looeee)\
**Replies:** 0\
**Last updated:** [March 22, 2017, 2:32pm UTC](https://discourse.threejs.org/t/object3d-log-function/109 "2017-03-22T14:32:05Z")

</div>

It was recently decided not to include logging functions in the core library. However it's useful functionality so here is a copy of the proposed log function (author: @WestLangley). function log( object3D ) { …
