new Lines2() → {Lines}
Provides an object which stores lines.
This is created when a valid json file containing lines is read into a Zinc.Scene
object.
- Source:
Returns:
- Type
- Lines
Methods
addLines(coords, colour)
Add new lines to existing lines if it exists, otherwise
create a new one and add to it.
Parameters:
Name | Type | Description |
---|---|---|
coords |
Array | An array of three components coordinates. |
colour |
Number | A hex value of the colour for the points |
- Source:
addVertices()
Add new vertices into the array
- Source:
createLineSegment(arrayIn, materialIn, options)
Create the line segements using geometry and material.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
arrayIn |
Array | Geometry of lines to be rendered. | |||||||||
materialIn |
THREE.Material | Material to be set for the lines. | |||||||||
options |
Object | Provide various options
Properties
|
- Source:
editVertice()
Edit Vertice in index.
- Source:
getVerticesByFaceIndex()
Get the vertices by face index
- Source:
setWidth(width)
Set the width for the lines.
Parameters:
Name | Type | Description |
---|---|---|
width |
Number | Width of the lines. |
- Source: