|
@@ -1,4 +1,3 @@
|
|
|
-import { Geometry } from './../core/Geometry';
|
|
|
import { Material } from './../materials/Material';
|
|
|
import { Raycaster } from './../core/Raycaster';
|
|
|
import { Object3D } from './../core/Object3D';
|
|
@@ -9,16 +8,16 @@ import { Intersection } from '../core/Raycaster';
|
|
|
* A class for displaying points. The points are rendered by the WebGLRenderer using gl.POINTS.
|
|
|
*/
|
|
|
export class Points <
|
|
|
- TGeometry extends Geometry | BufferGeometry = Geometry | BufferGeometry,
|
|
|
+ BufferGeometry,
|
|
|
TMaterial extends Material | Material[] = Material | Material[]
|
|
|
> extends Object3D {
|
|
|
|
|
|
/**
|
|
|
- * @param geometry An instance of Geometry or BufferGeometry.
|
|
|
+ * @param geometry An instance of BufferGeometry.
|
|
|
* @param material An instance of Material (optional).
|
|
|
*/
|
|
|
constructor(
|
|
|
- geometry?: TGeometry,
|
|
|
+ geometry?: BufferGeometry,
|
|
|
material?: TMaterial
|
|
|
);
|
|
|
|
|
@@ -28,9 +27,9 @@ export class Points <
|
|
|
readonly isPoints: true;
|
|
|
|
|
|
/**
|
|
|
- * An instance of Geometry or BufferGeometry, where each vertex designates the position of a particle in the system.
|
|
|
+ * An instance of BufferGeometry, where each vertex designates the position of a particle in the system.
|
|
|
*/
|
|
|
- geometry: TGeometry;
|
|
|
+ geometry: BufferGeometry;
|
|
|
|
|
|
/**
|
|
|
* An instance of Material, defining the object's appearance. Default is a PointsMaterial with randomised colour.
|