Trail class

Render paths defined by a connected line segments. The path rendering has animation which trace the path from the beginning to the end.

Signature:

export default class Trail extends Visualize 

Extends: Visualize

Example

var trails = new Modelo.Scene3D.Visualize.Trail(viewer.getRenderScene());
viewer.getScene().addVisualize(trails);
var points =[0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0];
trails.addTrail(points);
trails.setParameter("color", [81.0 / 255.0, 185.0 / 255.0, 1.0]);
trails.setParameter("speed", 0.02);
trails.setEnabled(true);

Constructors

ConstructorDescription
(constructor)(renderScene)Construct a trails visualize object.

Methods

MethodDescription
addTrail(points)Add one more path to the visualize.
setAnimationEnabled(enabled)Enable the animation.
setEnabled(enabled)Set visuzalize enabled.
setParameter(name, value)