DodecahedronGeometry 十二面体

—> Geometry

十二面体由正五边形拼接组成.

function DodecahedronGeometry( radius, detail ) { } var geometry = new THREE.DodecahedronGeometry(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 DodecahedronBufferGeometry( radius, detail ) )
mergeVertices( )

DodecahedronBufferGeometry

function DodecahedronBufferGeometry( radius, detail ) { }

继承自 PolyhedronBufferGeometry

图解API

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