WireframeGeometry

—> Geometry

它作为一个线框助手来查看几何体的线框结构, 传入一个是具体几何模型的对象作为参数, scene.add() 里的不是 Mesh, 而是LineSegments

function WireframeGeometry( geometry ) { } var geometry = new THREE.SphereBufferGeometry( 100, 100, 100 ); var wireframe = new THREE.WireframeGeometry( geometry ); var line = new THREE.LineSegments( wireframe ); line.material.depthTest = false; line.material.opacity = 0.25; line.material.transparent = true; scene.add( line );

Methods 继承自 BufferGeometry 并自动调用

addAttribute( )