Class: Pointset

Pointset() → {Pointset}

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.
Author:
  • Alan Wu
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
Name Type Description
localTimeEnabled Boolean A flag to indicate either the lines is time dependent.
localMorphColour Boolean A flag to indicate either the colour is time dependent.
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: