EdgesGeometry 边框几何体

—> Geometry

EdgesGeometry 只呈现几何体的边框, 只有线段, 没有面. 因此在选择材质时为 LineBasicMaterial 或其他线条材质, 添加到场景中的物体是 LineSegments 而不再是 Mesh.

function EdgesGeometry( geometry, thresholdAngle ) { } var geometry = new THREE.BoxGeometry(4, 4, 4), edgesGeometry = new THREE.EdgesGeometry(geometry, 1), linesMaterial = new THREE.LineBasicMaterial({color: 0xffffff}), edges = new THREE.LineSegments(edgesGeometry, linesMaterial); scene.add(edges);

Parameters

geometry thresholdAngle
1
几何体 临界角度

Methods 继承自 Geometry 并自动调用

addAttribute( )