Abstract
Internal
Optional
geometry: BufferGeometryAn instance of BufferGeometry.
Optional
material: Material | Material[]An instance of Material (optional).
This allows to discard the ray testing.
This method is similar to the original method raycast
in [[THREE.Points]] except that it
then calls the tailored testPoint
method in the children classes to test intersections
depending on whether the points are circles or squares, which [[THREE.Points]] cannot do.
The raycaster.
The array to fill with the results.
Abstract
testImplements the intersection testing in screen space between the drawn points and the ray.
The point to test.
The point position on screen.
The picking position on screen.
The index of the point in the [[THREE.BufferGeometry]].
The distance between the point and the ray origin.
The results array.
Generated using TypeDoc
MapViewPoints
is a class to extend for the"circles"
and"squares"
techniques to implement raycasting ofTHREE.Points
as expected in MapView, that are in screen space.Remarks
It copies the behaviour of the
raycast
method in [[THREE.Points]] and dispatches it to its children classes, Circles and Squares, who hold the intersection testing in thetestPoint
method. This class also has the ability to dismiss the testing via theenableRayTesting
flag.Its main motivation is to handle the point styles of XYZ projects.
See
https://github.com/mrdoob/three.js/blob/master/src/objects/Points.js