# Programatically generate cardboard box

**URL:** <https://discourse.threejs.org/t/programatically-generate-cardboard-box/29865>\
**Category:** Questions\
**Tags:** animation, geometry\
**Created:** [September 12, 2021, 7:13pm UTC](https://discourse.threejs.org/t/programatically-generate-cardboard-box/29865 "2021-09-12T19:13:02Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![hofk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/hofk/32/44944_2.png) [@hofk](https://discourse.threejs.org/u/hofk)\
**Post date:** [September 12, 2021, 7:50pm UTC](https://discourse.threejs.org/t/programatically-generate-cardboard-box/29865/3 "2021-09-12T19:50:19Z")

</div>

Take a look at these things.

* * *

[Magic Box](https://hofk.de/main/threejs/sandboxthreeg/MagicBoxTHREEg.html) example 9

( see [Addon to create special / extended geometries](https://discourse.threejs.org/t/addon-to-create-special-extended-geometries/1855)  
and  
[GitHub - hofk/THREEg.js: three.js addon to create special or extended geometries. The addon generates indexed or non indexed BufferGeometries.](https://github.com/hofk/THREEg.js))

* * *

The example  
[weiße Weihnacht](https://hofk.de/main/threejs/geometrie/03_weihnacht_wuerfel.html)  
uses the old Geometry. You have to update to BufferGeometry.

see [THREE.Geometry will be removed from core with r125](https://discourse.threejs.org/t/three-geometry-will-be-removed-from-core-with-r125/22401)

---

_[View the full topic](https://discourse.threejs.org/t/programatically-generate-cardboard-box/29865)._
