TetrahedronGeometry 四面体

—> Geometry

四面体由4个正三角形拼接组成.

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

TetrahedBufferGeometry

function TetrahedBufferGeometry( radius, detail ) { }

继承自 TetrahedBufferGeometry

图解API

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