Capítulo 11 de 859

Chapter 11: Points

Core Idea

A class for displaying points or point clouds.

Key Concepts

  • geometry : BufferGeometry: The points geometry.
  • isPoints : boolean (readonly): This flag can be used for type testing.
  • material : Material | Array.<Material>: The line material.
  • morphTargetDictionary : Object.<string, number> | undefined: A dictionary representing the morph targets in the geometry. The key is the morph targets name, the value its attribute index. This member …
  • morphTargetInfluences : Array.<number> | undefined: An array of weights typically in the range [0,1] that specify how much of the morph is applied. This member is undefined by default and…

Reference Tables

Constructor

Signature
`new Points( geometry : BufferGeometry, material : Material

Properties

PropertyDescription
.geometry : BufferGeometryThe points geometry.
.isPoints : boolean (readonly)This flag can be used for type testing.
`.material : MaterialArray.<Material>`
`.morphTargetDictionary : Object.<string, number>undefined`
`.morphTargetInfluences : Array.<number>undefined`

Methods

MethodDescription
.raycast( raycaster : Raycaster, intersects : Array.<Object> )Computes intersection points between a casted ray and this point cloud.
.updateMorphTargets()Sets the values of Points#morphTargetDictionary and Points#morphTargetInfluences to make sure existing morph targets can infl…

Key Takeaways

  1. Points extends: EventDispatcher → Object3D
  2. Most relevant properties: geometry, isPoints, material, morphTargetDictionary.
  3. Key methods: raycast, updateMorphTargets.

Connects To