fromLineSegments method
dynamic
fromLineSegments(
- dynamic lineSegments
Implementation
fromLineSegments(lineSegments) {
var geometry = lineSegments.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;
}