Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/threejs_4_deno/src/Three.d.ts>Points

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class Points
extends Object3D
import { Points } from "https://deno.land/x/threejs_4_deno@v121/src/Three.d.ts";

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

Constructors

new
Points(geometry?: TGeometry, material?: TMaterial)

Type Parameters

optional
TGeometry extends Geometry | BufferGeometry = Geometry | BufferGeometry
optional
TMaterial extends Material | Material[] = Material | Material[]

Properties

geometry: TGeometry

An instance of Geometry or BufferGeometry, where each vertex designates the position of a particle in the system.

readonly
isPoints: true
material: TMaterial

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

optional
morphTargetDictionary: { [key: string]: number; }
optional
morphTargetInfluences: number[]
type: "Points"

Methods

raycast(raycaster: Raycaster, intersects: Intersection[]): void