IcosahedronGeometry 二十面体

—> Geometry

二十面体由正三角形拼接组成.

function IcosahedronGeometry( radius, detail ) { } var geometry = new THREE.IcosahedronGeometry(4, 0), material = new THREE.MeshBasicMaterial({color: 0x663399, side: THREE.DoubleSide}), cube = new THREE.Mesh( geometry, material ); scene.add( cube );

Parameters

radius detail
1 0
半径

Methods 继承自 Geometry 并自动调用

fromBufferGeometry( new IcosahedronBufferGeometry( radius, detail ) )
mergeVertices( )

IcosahedronBufferGeometry

Line 26946

function IcosahedronBufferGeometry( radius, detail ) { }

图解API

纹理Texture来渲染二十面体模型. 点开查看