FatPoints.js 396 B

123456789101112131415161718192021
  1. import {
  2. Mesh
  3. } from 'three';
  4. import { FatPointsGeometry } from '../points/FatPointsGeometry.js';
  5. import { FatPointsNodeMaterial } from 'three/nodes';
  6. class FatPoints extends Mesh {
  7. constructor( geometry = new FatPointsGeometry(), material = new FatPointsNodeMaterial() ) {
  8. super( geometry, material );
  9. this.isFatPoints = true;
  10. this.type = 'FatPoints';
  11. }
  12. }
  13. export { FatPoints };