new LineScene()
- Source:
Classes
Methods
getMesh() → {THREE.mesh}
- Source:
Returns:
- return a mesh object.
- Type
- THREE.mesh
initGeometry()
- Source:
Init Geometry of Line Scene
initMesh()
- Source:
Init mesh of the scene.
reColor(start, end, color)
- Source:
Recolor the line, currently you should not use it.
Parameters:
| Name | Type | Description |
|---|---|---|
start |
number | [0-1] number, new color start |
end |
number | [0-1] number, new color ends |
color |
THREE.Color | new color |
setColors(defaultColor, highlightColor)
- Source:
Set the default color and highlight color, currently disabled
Parameters:
| Name | Type | Description |
|---|---|---|
defaultColor |
* | |
highlightColor |
* |
setResolution(width, height)
- Source:
Set resolution for material update.
Parameters:
| Name | Type | Description |
|---|---|---|
width |
* | viewport width. |
height |
* | viewport height. |
updateFunctions() → {function}
- Source:
Function that updates materials' resolution.
Returns:
- returns a closure function that updates material in render loop.
- Type
- function