Class CloudPoint
Hierarchy
- CloudPoint
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
-
Creates a Point Cloud object. Don't create particles manually, use instead the PCS internal tools like _addParticle()
Parameters
-
particleIndex: number
(integer) is the particle index in the PCS pool. It's also the particle identifier.
-
group: PointsGroup
(PointsGroup) is the group the particle belongs to
-
groupId: number
(integer) is the group identifier in the PCS.
-
idxInGroup: number
(integer) is the index of the particle in the current point group (ex: the 10th point of addPoints(30))
-
pcs: PointsCloudSystem
defines the PCS it is associated to
Returns CloudPoint
-
Properties
_groupSearch playground for _group
Group this particle belongs to
colorSearch playground for color
The color of the particle
group IdSearch playground for groupId
Group id of this particle
idxSearch playground for idx
particle global index
idx InGroupSearch playground for idxInGroup
Index of the particle in its group id (Internal use)
parent IdSearch playground for parentId
Parent particle Id, if any. Default null.
pivotSearch playground for pivot
The pivot point in the particle local space.
positionSearch playground for position
The world space position of the particle.
rotationSearch playground for rotation
The world space rotation of the particle. (Not use if rotationQuaternion is set)
rotation QuaternionSearch playground for rotationQuaternion
The world space rotation quaternion of the particle.
translate From PivotSearch playground for translateFromPivot
Must the particle be translated from its pivot point in its local space ? In this case, the pivot point is set at the origin of the particle local space and the particle is translated. Default : false
uvSearch playground for uv
The uv of the particle.
velocitySearch playground for velocity
The current speed of the particle.
Accessors
quaternion
-
Legacy support, changed quaternion to rotationQuaternion
Returns Nullable<Quaternion>
-
Legacy support, changed quaternion to rotationQuaternion
Parameters
-
q: Nullable<Quaternion>
Returns any
-
size
Methods
intersects MeshSearch playground for intersectsMesh
-
Returns a boolean. True if the particle intersects a mesh, else false The intersection is computed on the particle position and Axis Aligned Bounding Box (AABB) or Sphere
Parameters
-
target: Mesh
is the object (point or mesh) what the intersection is computed against
-
isSphere: boolean
is boolean flag when false (default) bounding box of mesh is used, when true the bouding sphere is used
Returns boolean
true if it intersects
-
Represents one particle of a points cloud system.