new Pointset() → {Pointset}
Provides an object which stores points and provides method which controls its position.
This is created when a valid json file containing point is read into a Zinc.Scene
object.
- Source:
Returns:
- Type
- Pointset
Methods
addPoints(coords, labels, colour)
Add points to existing mesh if it exists, otherwise
create a new one and add to it.
Parameters:
Name | Type | Description |
---|---|---|
coords |
Array | An array of three components coordinates. |
labels |
Array | String | An array of strings, these are only added if the number of coords equals to the number labels provided. |
colour |
Number | A hex value of the colour for the points |
- Source:
createMesh(geometryIn, materialIn, options)
Create the pointsets using geometry and material.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
geometryIn |
THREE.Geomtry | Geometry of points to be rendered. | |||||||||
materialIn |
THREE.Material | Material to be set for the lines. | |||||||||
options |
Object | Provide various options
Properties
|
- Source:
editVertices()
Edit Vertice in index.
- Source:
getVerticesByIndex()
Get vertices at index
- Source:
render(flag)
Turn size attenuation on/off based on the flag.
Parameters:
Name | Type | Description |
---|---|---|
flag |
Boolean | Determin either size attenuation should be on or off. |
- Source:
setSize(size)
Set the size of the points.
Parameters:
Name | Type | Description |
---|---|---|
size |
Number | size to be set. |
- Source:
setSizeAttenuation(flag)
Turn size attenuation on/off based on the flag.
Parameters:
Name | Type | Description |
---|---|---|
flag |
Boolean | Determin either size attenuation should be on or off. |
- Source: