mrdoob/three.js — Issue #1261: [Issue?] THREE.IcosahedronGeometry cannot subdivide beyond 5.
Author: BKcore
Created: 2012-02-06 20:07:21+00:00
State: open

# The Link
http://demo.bkcore.com/threejs/webgl_tron_iso.html

# The issue
Hey, back again with another question / issue :D

As you can see on the demo I'm using THREE.IcosahedronGeometry to generate two meshes.

My problem is that I cannot generate an Icosahedron with more than 5 levels of subdivision. Indeed, the two isoc. in my demo seems to have the same subdivision level, but if you take a look at the code (around line 310+), you can see that the big one is constructed with a subdivision level = 5 while the small one should be = 10.

After a bid of fiddling, I found out that I cannot go beyond 5 subdivisions.

I took a look at https://github.com/mrdoob/three.js/blob/master/src/extras/geometries/IcosahedronGeometry.js, but didn't find any limitation in it.

Any idea ?

Thanks,
Thibaut D.