OctahedronGeometry 八面体

—> Geometry

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

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

OctahedronBufferGeometry

function OctahedronBufferGeometry( radius, detail ) { }

图解API

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