Object3D

Points

A class for displaying points. The points are rendered by the WebGLRenderer using gl.POINTS.

Constructor

Points(geometry : Geometry, material : Material)

geometry — (optional) an instance of Geometry or BufferGeometry. Default is a new BufferGeometry.
material — (optional) a Material. Default is a new PointsMaterial with a random color.

Properties

See the base Object3D class for common properties.

.geometry : Geometry

An instance of Geometry or BufferGeometry (or derived classes), defining the object's structure.

Its recommended to always use a BufferGeometry if possible for best performance.

.isPoints : Boolean

Used to check whether this or derived classes are points. Default is true.

You should not change this, as it used internally for optimisation.

.material : Material

An instance of Material, defining the object's appearance. Default is a PointsMaterial with a random color.

Methods

See the base Object3D class for common methods.

.raycast (raycaster : Raycaster, intersects : Array) : null

Get intersections between a casted ray and this Points. Raycaster.intersectObject will call this method.

.clone () : Points

Returns a clone of this Points object and its descendants.

Source

For more info on how to obtain the source code of this module see this page.