Points 点集

—> Object3D

function Points( geometry, material ) { } var geometry = new THREE.SphereGeometry(24, 40, 40), material = new THREE.PointsMaterial({color: 0xb180e3}), cube = new THREE.Points(geometry, material); scene.add(cube);

Attributes

type : String

Default value : Points
Description : 类型.

isPoints : Boolean

Default value : true (只读)
Description : 类型是否为Points.

geometry : Geometry

Default value : new BufferGeometry()
Description : 几何形状.

material : Material

Default value : new PointsMaterial( { color: Math.random() * 0xffffff } )
Description : 材质.

Methods

raycast( raycaster, intersects )
raycaster Raycaster 光线投掷者
intersects Array 相交

求射线与点集的交点, Raycaster.intersectObject 调用这方法.