fromLine method
dynamic
fromLine(
- dynamic line
Implementation
fromLine(line) {
var geometry = line.geometry;
if (geometry.isGeometry) {
this.setPositions(geometry.vertices);
} else if (geometry.isBufferGeometry) {
this.setPositions(
geometry.attributes.position.array); // assumes non-indexed
}
// set colors, maybe
return this;
}