Class: TubeLines

TubeLines() → {TubeLines}

new TubeLines() → {TubeLines}

Provides an object which stores lines. This is created when a valid json file containing lines is read into a Zinc.Scene object.
Author:
  • Alan Wu
Source:
Returns:
Type
TubeLines

Methods

createLineSegment(geometryIn, materialIn, options)

Create the line segements using geometry and material.
Parameters:
Name Type Description
geometryIn THREE.Geomtry Geometry of lines 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:

setAlpha(alpah)

Set the opacity of this Geometry. This function will also set the transparent according to the provided alpha value.
Parameters:
Name Type Description
alpah Number Alpha value to set for this geometry, can be any value between from 0 to 1.0.
Source:

setTubeLines(radius, radialSegments)

Update tube radius/radialSegments value
Parameters:
Name Type Description
radius Float The radius of the tube.
radialSegments Integer The number of segments that make up the cross-section.
Source:

setWidth(width)

Set the width for the lines.
Parameters:
Name Type Description
width Number Width of the lines.
Source:

setWireframe(wireframe)

Set the wireframe mode for this geometry.
Parameters:
Name Type Description
wireframe Boolean
Source:

(inner) getTubeLinesGeometry(vertices) → {Object}

Get merged geometry from list of geometry vertices
Parameters:
Name Type Description
vertices Array An array of THREE.Vector3 vertices.
Source:
Returns:
Type
Object