new FrustumPoints(camera, group, canvas, settingsopt)
Create a `FrustumPoints` instance.
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
camera |
THREE.PerspectiveCamera | PerspectiveCamera | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
group |
THREE.Group | group of objects to which a new FrustumPoints will be added | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
canvas |
DOM | The Graphics Canvas element to draw graphics and animations. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
settings |
object |
<optional> |
{} | the following settings are available
Properties
|
- Source:
Classes
Methods
animate()
Called from animate loop for rendering.
- Source:
- See:
create(renderer)
create points
Parameters:
Name | Type | Description |
---|---|---|
renderer |
THREE.WebGLRenderer | THREE.WebGLRenderer. |
- Source:
gui(folderopt)
Adds FrustumPoints folder into dat.GUI.
See dat.GUI API.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
folder |
object |
<optional> |
parent folder |
- Source:
isDisplay()
- Source:
Returns:
true - frustum points is created and visible.
false - frustum points have been removed.
pushArrayCloud(geometry)
Pushes to clouds array all points from geometry.attributes.position
Parameters:
Name | Type | Description |
---|---|---|
geometry |
THREE.BufferGeometry | THREE.Points | THREE.BufferGeometry or THREE.Points |
- Source:
Returns:
index of the new array item
update()
Moves frustum points in front of the camera.
- Source:
updateCloudPoint(mesh)
Parameters:
Name | Type | Description |
---|---|---|
mesh |
THREE.Mesh | Mech |
- Source:
updateCloudPoints()
Updates the cloud's points according new position of the all points of the all meshes
of the group of objects to which a new FrustumPoints has been added.
- Source:
updateGuiSelectPoint()
update "frustum points" item in the GuiSelectPoint.
- Source:
Events
onChangeControls
The user has moved the camera
- Source:
updateCloudPointItem
The user has changed selected point.
Parameters:
Name | Type | Description |
---|---|---|
points |
THREE.Points | Points |
i |
number | index of the point from points for udating |
- Source: