fromLine method

dynamic fromLine(
  1. dynamic line
)

Implementation

fromLine(line) {
  var geometry = line.geometry;

  if (geometry.isGeometry) {
    setPositions(geometry.vertices);
  } else if (geometry.isBufferGeometry) {
    setPositions(geometry.attributes.position.array); // assumes non-indexed

  }

  // set colors, maybe

  return this;
}