[page:Object3D] →
[name]
A class for displaying points.
The points are rendered by the [page:WebGLRenderer] using
[link:https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements gl.POINTS].
Constructor
[name]( [param:Geometry geometry], [param:Material material] )
[page:Geometry geometry] — (optional) an instance of [page:Geometry] or [page:BufferGeometry].
Default is a new [page:BufferGeometry].
[page:Material material] — (optional) a [page:Material]. Default is a new [page:PointsMaterial]
with a random color.
Properties
See the base [page:Object3D] class for common properties.
[property:Geometry geometry]
An instance of [page:Geometry] or [page:BufferGeometry] (or derived classes),
defining the object's structure.
Its recommended to always use a [page:BufferGeometry] if possible for best performance.
[property:Boolean isPoints]
Used to check whether this or derived classes are points. Default is *true*.
You should not change this, as it used internally for optimisation.
[property:Material material]
An instance of [page:Material], defining the object's appearance.
Default is a [page:PointsMaterial] with a random color.
Methods
See the base [page:Object3D] class for common methods.
[method:Array raycast]( [param:Raycaster raycaster], [param:Array intersects] )
Get intersections between a casted ray and this Points.
[page:Raycaster.intersectObject] will call this method.
[method:Points clone]()
Returns a clone of this Points object and its descendants.
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]