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